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