class CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test
Defined at line 1239 of file ../../src/starnix/tests/syscalls/cpp/capabilities_test.cc
From
<https
://man7.org/linux/man-pages/man7/capabilities.7.html>:
During an execve(2), the kernel calculates the new capabilities of the
process using the following algorithm:
P'(ambient) = (file is privileged) ? 0 : P(ambient)
P'(permitted) = (P(inheritable)
&
F(inheritable)) |
(F(permitted)
&
P(bounding)) | P'(ambient)
P'(effective) = F(effective) ? P'(permitted) : P'(ambient)
Verifies that executing a binary with V2 effective file capabilities
grants those capabilities in both the permitted and effective sets of a non-root user.
Public Methods
void CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test ()
Defined at line 1239 of file ../../src/starnix/tests/syscalls/cpp/capabilities_test.cc
void CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test (const CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test & )
Defined at line 1239 of file ../../src/starnix/tests/syscalls/cpp/capabilities_test.cc
void CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test (CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test && )
Defined at line 1239 of file ../../src/starnix/tests/syscalls/cpp/capabilities_test.cc
CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test & operator= (const CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test & )
Defined at line 1239 of file ../../src/starnix/tests/syscalls/cpp/capabilities_test.cc
CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test & operator= (CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test && )
Defined at line 1239 of file ../../src/starnix/tests/syscalls/cpp/capabilities_test.cc
void ~CapsExecTest_FileV2EffectiveCapsGrantsPermittedAndEffective_Test ()
Defined at line 1239 of file ../../src/starnix/tests/syscalls/cpp/capabilities_test.cc