mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fad7fc57f7
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>
15 lines
516 B
Plaintext
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
|