mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
6c5ab75901
This tests the fs.protected_regular and fs.protected_fifos sysctls which restrict access behavior in sticky world-writable directories as documented in the kernel at Documentation/admin-guide/sysctl/fs.rst Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
29 lines
744 B
Plaintext
29 lines
744 B
Plaintext
QA output created by 598
|
|
== Test file open when owned by another and file owner != dir owner
|
|
fs.protected_regular = 0
|
|
= group & world writable dir
|
|
= only group writable dir
|
|
fs.protected_regular = 1
|
|
= group & world writable dir
|
|
Permission denied
|
|
= only group writable dir
|
|
fs.protected_regular = 2
|
|
= group & world writable dir
|
|
Permission denied
|
|
= only group writable dir
|
|
Permission denied
|
|
|
|
== Test fifo open when owned by another and fifo owner != dir owner
|
|
fs.protected_fifos = 0
|
|
= group & world writable dir
|
|
= only group writable dir
|
|
fs.protected_fifos = 1
|
|
= group & world writable dir
|
|
Permission denied
|
|
= only group writable dir
|
|
fs.protected_fifos = 2
|
|
= group & world writable dir
|
|
Permission denied
|
|
= only group writable dir
|
|
Permission denied
|