-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
libselinux and SELinux support for coreutils #21495
Conversation
19f1320
to
0dbb30b
Compare
The added SELinux feature seems to be working just fine except for the ability to set default context type, but that's expected considering the library itself have the feature disabled when built for Android. Here's the list of the progams I've tested:
|
0dbb30b
to
d856719
Compare
d856719
to
68b28d8
Compare
68b28d8
to
4346a01
Compare
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.
Ok LGTM I will help merge unless someone objects
Many thanks. |
I do have concern though whether some build systems are stupidly enough to hardcode detect Should be rectified somewhat using modified pc.in files which can be added later. And in the worst scenario can change the soname back which should be done as early as possible. Not to say I don't like |
Closes (termux/termux-packages)termux#3020
4346a01
to
c377170
Compare
Thanks for the hard work! |
This PR introduces a new library (libandroid-selinux) for basic SELinux functionality.
Along with that, I've also added SELinux support to coreutils.
chcon
andls -Z
seems to be working.I still haven't done a thorough testing just yet so it might still have a few catch, but that should not break existing functionalities.