Skip to content

chore(deps): update rust crate selinux to 0.7 - #17007

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/selinux-0.x
Closed

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/selinux-0.x

Conversation

@renovate

@renovate renovate Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
selinux workspace.dependencies minor 0.6 → 0.7

Release Notes

koutheir/selinux (selinux)

v0.7.0

Added
  • Added selinux::label::Labeler::into_ptr().
Changed
  • Updated dependencies.
  • Raised the minimum supported Rust version to 1.95.
  • The equality and ordering of selinux::avc::SELinuxOption now depend on its type.
  • Fixed a use-after-free bug that can happen after a policy reload.
  • Better error handling in the following methods:
    • selinux::label::Labeler::get_digests_all_partial_matches_by_path()
    • selinux::SecurityContext::check_access()
    • selinux::SecurityContextList::eq()

⚠️ All the following are breaking changes:

  • The method get() of selinux::SecurityContextList is now fallible.

  • The method to_color() of selinux::SecurityContext was renamed to colors() and a bug was fixed
    in its parsing logic.

  • The method to_c_string() of selinux::SecurityContext was renamed to to_c_str()
    and its return value is now a shared reference to a C string.

  • The method set_call_back() of selinux::call_back::CallBack can no longer be used to clear
    call backs because libselinux crashes sometimes if that is done.

  • The following methods of selinux::SecurityContext no longer accept a raw_format argument:

    • set_for_new_file_system_objects()
    • set_for_new_kernel_key_rings()
    • set_for_new_labeled_sockets()
    • set_for_path()
  • selinux::context_restore::ContextRestore now owns its labeler, if given one.

    The previous behavior allowed it to have an exclusive reference to the labeler.
    The new, more limited, constraint is due to the semantics of selinux_restorecon_set_sehandle()
    which takes ownership of the provided labeler.

  • selinux::avc::AccessVectorCache::security_context_from_security_id() now requires its input
    to have a life time tied to the AccessVectorCache itself.

    The new, more limited, constraint is due to the fact that security IDs are no longer reference
    counted inside libselinux.

  • The method selinux::SecurityClass::access_vector_bit_name() is now safe, but it returns
    an owned value instead of the static reference it used to return.

  • The method selinux::flush_class_cache() is now unsafe.

  • The following methods now return an owned value instead of shared static references:

    • selinux::path::selinux
    • selinux::path::default_type_path
    • selinux::path::fail_safe_context
    • selinux::path::removable_context
    • selinux::path::default_context
    • selinux::path::user_contexts
    • selinux::path::file_context
    • selinux::path::file_context_homedir
    • selinux::path::file_context_local
    • selinux::path::file_context_subs
    • selinux::path::file_context_subs_dist
    • selinux::path::home_dir_context
    • selinux::path::media_context
    • selinux::path::virtual_domain_context
    • selinux::path::virtual_image_context
    • selinux::path::lxc_contexts
    • selinux::path::x_context
    • selinux::path::sepgsql_context
    • selinux::path::openrc_contexts
    • selinux::path::openssh_contexts
    • selinux::path::snapperd_contexts
    • selinux::path::systemd_contexts
    • selinux::path::contexts
    • selinux::path::securetty_types
    • selinux::path::booleans_subs
    • selinux::path::customizable_types
    • selinux::path::users_conf
    • selinux::path::translations
    • selinux::path::colors
    • selinux::path::netfilter_context
    • selinux::policy::root_path
    • selinux::policy::current_policy_path
    • selinux::policy::binary_policy_path
Removed
  • The following methods were removed:

    • selinux::label::PartialMatchesDigests::len
    • selinux::label::PartialMatchesDigests::is_empty

    ⚠️ This is a breaking change.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@xtqqczze

Copy link
Copy Markdown
Collaborator

requires MSRV of 1.95

@xtqqczze xtqqczze closed this Nov 30, 2026
@renovate

renovate Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.7). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate
renovate Bot deleted the renovate/selinux-0.x branch November 30, 2026 00:07
@xtqqczze

Copy link
Copy Markdown
Collaborator

@SnoozeThis wait until 2027-04-17

@SnoozeThis

Copy link
Copy Markdown

(https://snoozeth.is/AX03s2cVFrQ) I will wait until Sat, 17 Apr 2027 00:00:00 UTC and then add a comment.

@xtqqczze

xtqqczze commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

@xtqqczze

Copy link
Copy Markdown
Collaborator

@SnoozeThis /cancel

@SnoozeThis

Copy link
Copy Markdown

Snooze cancelled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants