Skip to content

mkdir: warn when --context is used without SELinux/SMACK#13311

Open
Chaganti-Reddy wants to merge 1 commit into
uutils:mainfrom
Chaganti-Reddy:mkdir-context-warning
Open

mkdir: warn when --context is used without SELinux/SMACK#13311
Chaganti-Reddy wants to merge 1 commit into
uutils:mainfrom
Chaganti-Reddy:mkdir-context-warning

Conversation

@Chaganti-Reddy

Copy link
Copy Markdown
Contributor

the selinux check happened before even trying to set the context, so on a kernel without SELinux/SMACK the whole block was skipped and --context silently did nothing. GNU still creates the dir but warns about it. added the missing else branch, matches GNU's wording now.

Fixes #12985

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/rm/isatty (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/retry (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/cp/link-heap is now being skipped but was previously passing.

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.

bug(mkdir): when using --context in Non Selinux kernel, it does not warn

1 participant