mkdir: add the selinux support#7635
Merged
cakebaker merged 5 commits intouutils:mainfrom Apr 13, 2025
Merged
Conversation
3a8d0d8 to
15bd763
Compare
Contributor
Author
|
interesting, it passed on my system but clearly fails here: |
Contributor
Author
|
the gnu tests don't pass for now but it is expected |
cakebaker
reviewed
Apr 6, 2025
cakebaker
reviewed
Apr 6, 2025
cakebaker
reviewed
Apr 6, 2025
cakebaker
reviewed
Apr 6, 2025
cakebaker
reviewed
Apr 6, 2025
cakebaker
reviewed
Apr 6, 2025
Contributor
cakebaker
left a comment
There was a problem hiding this comment.
One thing I noticed is that GNU mkdir shows a warning if a context name is provided and the kernel doesn't support selinux whereas uutils mkdir doesn't:
$ mkdir somedir --context=testtest
mkdir: warning: ignoring --context; it requires an SELinux/SMACK-enabled kernel
$ echo $?
0
$ cargo run -q --features=selinux mkdir somedir --context=testtest
$ echo $?
0
a4a31f5 to
490e9c5
Compare
|
GNU testsuite comparison: |
490e9c5 to
588e1b3
Compare
Contributor
Author
|
@cakebaker |
588e1b3 to
81cb534
Compare
|
GNU testsuite comparison: |
81cb534 to
1b8ab85
Compare
|
GNU testsuite comparison: |
Should fix: gnu/tests/mkdir/selinux.sh tests/mkdir/restorecon.sh
Contributor
Author
|
@cakebaker i think it is now ready :) |
cakebaker
reviewed
Apr 11, 2025
1b8ab85 to
fe77174
Compare
|
GNU testsuite comparison: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.