tests: port generic/093 to Linux
authorEric Biggers <ebiggers@google.com>
Fri, 21 Jul 2017 04:22:04 +0000 (21:22 -0700)
committerEryu Guan <eguan@redhat.com>
Mon, 24 Jul 2017 04:13:35 +0000 (12:13 +0800)
commitf5413189dbd5d23c1194d7a94fe26db2df41ea90
tree6914585c8f52ff64df8c87cdd8ae11ce4f57fd56
parent22ea2f8c0a89d3a91d69fd2f8a4208fa0579abe7
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>
src/writemod.c
tests/generic/093
tests/generic/093.out
tests/generic/group