Commit 832fccf
tests/capable_file: fix fsetid test
The current test for the SELinux fsetid capability check tries to
set the setgid bit on a file with a different group ownership and
compares the file mode before and after to determine success/failure.
However, for reasons unknown, the current test runs chmod g+rs
which tries to set both the read bit and setgid bit, and will change
the read bit if not already set, causing the test to fail if the umask
doesn't allow group read by default. Fix the test to only run chmod g+s.
Signed-off-by: Stephen Smalley <[email protected]>1 parent 8d0676a commit 832fccf
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments