Files
apfstests/tests/generic/598.out
T
Eric Sandeen 6c5ab75901 fstests: test restricted file access sysctls
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>
2020-05-24 23:09:42 +08:00

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