Files
apfstests/tests/generic/597.out
T
Eric Sandeen fad7fc57f7 fstests: test restricted symlinks & hardlinks sysctls
This tests the fs.protected_symlinks and fs.protected_hardlinks
sysctls which restrict links 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

15 lines
516 B
Plaintext

QA output created by 597
== Test symlink follow protection when
== process != link owner and dir owner != link owner
fs.protected_symlinks = 0
successfully followed symlink
fs.protected_symlinks = 1
Permission denied
== Test hardlink create protection when
== process != target owner and process cannot read target
fs.protected_hardlinks = 0
successfully created hardlink
fs.protected_hardlinks = 1
ln: failed to create hard link 'TEST_DIR/597/sticky_dir/hardlink' => 'TEST_DIR/597/target': Operation not permitted