selinux breaking changes
selinux 0.7.0 (November 29, 2026) is its newest release with breaking changes, 52 of them. The first: Removed selinux::label::PartialMatchesDigests::is_empty. Every breaking API change we have recorded in selinux on crates.io: 52 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.7.2, released December 2, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
selinux 0.7.0 breaking changes
- Removed
selinux::label::PartialMatchesDigests::is_empty
selinux::label::PartialMatchesDigests::is_empty was removed in selinux 0.7.0 crates.io - Removed
selinux::label::PartialMatchesDigests::len
selinux::label::PartialMatchesDigests::len was removed in selinux 0.7.0 crates.io - Removed
selinux::SecurityContext::to_c_string
selinux::SecurityContext::to_c_string was removed in selinux 0.7.0 crates.io - Renamed
selinux::SecurityContext::to_color
Use selinux::SecurityContext::colors instead. crates.io - Signature changed
selinux::avc::AccessVectorCache::security_context_from_security_id
Was fn security_context_from_security_id<'context>(&'context self, mut security_id: SecurityID) -> Result<SecurityContext<'context>>; now fn security_context_from_security_id<'context>(&'context self, mut security_id: SecurityID<'context>)... crates.io - Signature changed
selinux::call_back::CallBack::set_call_back
Was fn set_call_back(call_back: Option<Self::CallBackType>); now fn set_call_back(call_back: Self::CallBackType). crates.io - Signature changed
selinux::call_back::log_type::POLICY_LOAD
Was static POLICY_LOAD: c_int; now const POLICY_LOAD: c_int. crates.io - Signature changed
selinux::call_back::log_type::SET_ENFORCE
Was static SET_ENFORCE: c_int; now const SET_ENFORCE: c_int. crates.io - Signature changed
selinux::context_restore::ContextRestore
Was struct ContextRestore<'labeler, T: crate::label::back_end::BackEnd>; now struct ContextRestore<T: crate::label::back_end::BackEnd>. crates.io - Signature changed
selinux::context_restore::ContextRestore::labeler
Was fn labeler(&self) -> Option<&&'labeler mut Labeler<T>>; now fn labeler(&self) -> Option<&Labeler<T>>. crates.io - Signature changed
selinux::context_restore::ContextRestore::restore_context_of_file_system_entry
Was fn restore_context_of_file_system_entry(self, path: impl AsRef<Path>, threads_count: usize, flags: RestoreFlags) -> Result<FileSystemEntryContextRestoreResult>; now fn restore_context_of_file_system_entry(mut self, path: impl... crates.io - Signature changed
selinux::context_restore::ContextRestore::with_labeler
Was fn with_labeler(labeler: &'labeler mut Labeler<T>) -> Self; now fn with_labeler(labeler: Labeler<T>) -> Self. crates.io - Signature changed
selinux::flush_class_cache
Was fn flush_class_cache() -> Result<()>; now unsafe fn flush_class_cache() -> Result<()>. crates.io - Signature changed
selinux::path::booleans_subs
Was fn booleans_subs() -> Result<&'static Path>; now fn booleans_subs() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::colors
Was fn colors() -> Result<&'static Path>; now fn colors() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::contexts
Was fn contexts() -> Result<&'static Path>; now fn contexts() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::customizable_types
Was fn customizable_types() -> Result<&'static Path>; now fn customizable_types() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::default_context
Was fn default_context() -> Result<&'static Path>; now fn default_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::default_type_path
Was fn default_type_path() -> Result<&'static Path>; now fn default_type_path() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::fail_safe_context
Was fn fail_safe_context() -> Result<&'static Path>; now fn fail_safe_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::file_context
Was fn file_context() -> Result<&'static Path>; now fn file_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::file_context_homedir
Was fn file_context_homedir() -> Result<&'static Path>; now fn file_context_homedir() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::file_context_local
Was fn file_context_local() -> Result<&'static Path>; now fn file_context_local() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::file_context_subs
Was fn file_context_subs() -> Result<&'static Path>; now fn file_context_subs() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::file_context_subs_dist
Was fn file_context_subs_dist() -> Result<&'static Path>; now fn file_context_subs_dist() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::home_dir_context
Was fn home_dir_context() -> Result<&'static Path>; now fn home_dir_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::lxc_contexts
Was fn lxc_contexts() -> Result<&'static Path>; now fn lxc_contexts() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::media_context
Was fn media_context() -> Result<&'static Path>; now fn media_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::netfilter_context
Was fn netfilter_context() -> Result<&'static Path>; now fn netfilter_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::openrc_contexts
Was fn openrc_contexts() -> Result<&'static Path>; now fn openrc_contexts() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::openssh_contexts
Was fn openssh_contexts() -> Result<&'static Path>; now fn openssh_contexts() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::removable_context
Was fn removable_context() -> Result<&'static Path>; now fn removable_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::securetty_types
Was fn securetty_types() -> Result<&'static Path>; now fn securetty_types() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::selinux
Was fn selinux() -> Result<&'static Path>; now fn selinux() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::sepgsql_context
Was fn sepgsql_context() -> Result<&'static Path>; now fn sepgsql_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::snapperd_contexts
Was fn snapperd_contexts() -> Result<&'static Path>; now fn snapperd_contexts() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::systemd_contexts
Was fn systemd_contexts() -> Result<&'static Path>; now fn systemd_contexts() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::translations
Was fn translations() -> Result<&'static Path>; now fn translations() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::user_contexts
Was fn user_contexts() -> Result<&'static Path>; now fn user_contexts() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::users_conf
Was fn users_conf() -> Result<&'static Path>; now fn users_conf() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::virtual_domain_context
Was fn virtual_domain_context() -> Result<&'static Path>; now fn virtual_domain_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::virtual_image_context
Was fn virtual_image_context() -> Result<&'static Path>; now fn virtual_image_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::path::x_context
Was fn x_context() -> Result<&'static Path>; now fn x_context() -> Result<PathBuf>. crates.io - Signature changed
selinux::policy::binary_policy_path
Was fn binary_policy_path() -> Result<&'static Path>; now fn binary_policy_path() -> Result<PathBuf>. crates.io - Signature changed
selinux::policy::current_policy_path
Was fn current_policy_path() -> Result<&'static Path>; now fn current_policy_path() -> Result<PathBuf>. crates.io - Signature changed
selinux::policy::root_path
Was fn root_path() -> Result<&'static Path>; now fn root_path() -> Result<PathBuf>. crates.io - Signature changed
selinux::SecurityClass::access_vector_bit_name
Was unsafe fn access_vector_bit_name(&self, access_vector: selinux_sys::access_vector_t) -> Result<&'static CStr>; now fn access_vector_bit_name(&self, access_vector: selinux_sys::access_vector_t) -> Result<CString>. crates.io - Signature changed
selinux::SecurityContext::set_for_new_file_system_objects
Was fn set_for_new_file_system_objects(&self, raw_format: bool) -> Result<()>; now fn set_for_new_file_system_objects(&self) -> Result<()>. crates.io - Signature changed
selinux::SecurityContext::set_for_new_kernel_key_rings
Was fn set_for_new_kernel_key_rings(&self, raw_format: bool) -> Result<()>; now fn set_for_new_kernel_key_rings(&self) -> Result<()>. crates.io - Signature changed
selinux::SecurityContext::set_for_new_labeled_sockets
Was fn set_for_new_labeled_sockets(&self, raw_format: bool) -> Result<()>; now fn set_for_new_labeled_sockets(&self) -> Result<()>. crates.io
And 2 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.