struct FileCapClearParam

Defined at line 2227 of file ../../src/starnix/tests/syscalls/cpp/capabilities_test.cc

From

<https

://man7.org/linux/man-pages/man2/chown.2.html>:

When the owner or group of an executable file is changed (by any user),

all capability sets for the file are cleared.

If the owner or group is specified as -1, then that ID is not

changed.

From

<https

://man7.org/linux/man-pages/man3/write.3p.html>:

If the file is a regular file, the S_ISUID and S_ISGID bits of the file

mode may be cleared.

From

<https

://man7.org/linux/man-pages/man2/truncate.2.html>:

If the size changed, then [...] the set-user-ID and set-group-ID mode bits

may be cleared.

Verifies that modifying a file via write(2), truncate(2), ftruncate(2), or

open(O_TRUNC), or calling chown(2) or fchown(2), removes any

security.capability extended attribute from the file.

Public Members

basic_string name
function operation