Home
last modified time | relevance | path

Searched refs:capHeader (Results 1 – 4 of 4) sorted by relevance

/base/startup/appspawn_lite/services/src/
Dappspawn_process.c49 struct __user_cap_header_struct capHeader; in SetCapability() local
50 capHeader.version = _LINUX_CAPABILITY_VERSION_3; in SetCapability()
51 capHeader.pid = 0; in SetCapability()
61 if (capset(&capHeader, capData) != 0) { in SetCapability()
/base/startup/appspawn/lite/
Dappspawn_process.c58 struct __user_cap_header_struct capHeader; in SetCapability() local
59 capHeader.version = _LINUX_CAPABILITY_VERSION_3; in SetCapability()
60 capHeader.pid = 0; in SetCapability()
70 if (capset(&capHeader, capData) != 0) { in SetCapability()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
Ddfx_signal_handler.c152 struct __user_cap_header_struct capHeader; in InheritCapabilities() local
153 memset(&capHeader, 0, sizeof(capHeader)); in InheritCapabilities()
155 capHeader.version = _LINUX_CAPABILITY_VERSION_3; in InheritCapabilities()
156 capHeader.pid = 0; in InheritCapabilities()
158 if (capget(&capHeader, &capData[0]) == -1) { in InheritCapabilities()
165 if (capset(&capHeader, &capData[0]) == -1) { in InheritCapabilities()
/base/startup/init/services/init/
Dinit_common_service.c148 struct __user_cap_header_struct capHeader; in SetPerms() local
149 capHeader.version = _LINUX_CAPABILITY_VERSION_3; in SetPerms()
150 capHeader.pid = 0; in SetPerms()
166 INIT_ERROR_CHECK(capset(&capHeader, capData) == 0, return SERVICE_FAILURE, in SetPerms()