class CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test

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

From

<https

://man7.org/linux/man-pages/man7/capabilities.7.html>:

The kernel recognizes a file which has the file effective bit set as

capability-dumb for the purpose of the check described here. When

executing a capability-dumb binary, the kernel checks if the process

obtained all permitted capabilities that were specified in the file

permitted set [...]. If the process did not obtain the full set of file

permitted capabilities, then execve(2) fails with the error EPERM.

Verifies that root executing a capability-aware binary (F(effective) = false)

succeeds even when P(bounding) excludes a capability in F(permitted), because

the EPERM check only applies to binaries with F(effective) = true.

Public Methods

void CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test ()

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

void CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test (const CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test & )

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

void CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test (CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test && )

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

CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test & operator= (const CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test & )

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

CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test & operator= (CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test && )

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

void ~CapsExecTest_RootExecutingNonEffectiveFileCapsWithRestrictedBoundingSetSucceeds_Test ()

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