Files
apfstests/tests/generic/093.out
T
Eric Biggers f5413189db tests: port generic/093 to Linux
This IRIX-specific test mainly tested whether a file's capabilities are
cleared when it is written to.  Port the test to the Linux libcap tools
and update it to expect the Linux semantics which are a little simpler:
capabilities are always cleared even if the program is root (or has
CAP_FSETID).  The test also tests that chmod doesn't affect open file
descriptors; this is mostly unrelated, but keep it in for now.

[eguan: add _require_test_program rule for src/writemod]

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-07-24 12:13:35 +08:00

18 lines
372 B
Plaintext

QA output created by 093
**** Verifying that appending to file clears capabilities ****
file = cap_chown+ep
data1
**** Verifying that appending to file doesn't clear other xattrs ****
data1
data2
# file: file
trusted.name
**** Verifying that chmod doesn't affect open file descriptors ****
open for write "file" with 777
remove perms on file
write to the file
hi there