-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
selinux: use the uucore function #7769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/uu/id/src/id.rs
Outdated
@@ -130,7 +130,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { | |||
selinux_supported: { | |||
#[cfg(feature = "selinux")] | |||
{ | |||
selinux::kernel_support() != selinux::KernelSupport::Unsupported | |||
uucore::selinux::check_selinux_enabled().is_ok() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's my failure, I didn't notice it during a previous review: I think check_selinux_enabled()
should simply return a bool
instead of a Result
and probably be renamed to something like is_selinux_enabled()
.
It looks like you have to enable the
|
GNU testsuite comparison:
|
a268072
to
fe848a6
Compare
GNU testsuite comparison:
|
GNU testsuite comparison:
|
I don't know if you have seen it: clippy complains about a (trivial) issue and two |
GNU testsuite comparison:
|
No description provided.