Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 15 of 15) sorted by relevance

/base/startup/init/interfaces/innerkits/syscap/
Dinit_syscap.c30 bool HasSystemCapability(const char *cap) in HasSystemCapability() argument
36 if (cap == NULL) { in HasSystemCapability()
41 if (strncmp(SYSCAP_PREFIX_NAME, cap, sizeof(SYSCAP_PREFIX_NAME) - 1) == 0) { in HasSystemCapability()
42 if (snprintf_s(capName, SYSCAP_MAX_SIZE, SYSCAP_MAX_SIZE - 1, "const.%s", cap) == -1) { in HasSystemCapability()
46 …rintf_s(capName, SYSCAP_MAX_SIZE, SYSCAP_MAX_SIZE - 1, CONST_SYSCAP_PREFIX_NAME".%s", cap) == -1) { in HasSystemCapability()
/base/startup/init/interfaces/kits/syscap/src/
Dsyscap_ndk.c20 bool canIUse(const char *cap) in canIUse() argument
22 return HasSystemCapability(cap); in canIUse()
/base/startup/appspawn_lite/services/src/
Dappspawn_adapter.c33 int SetAmbientCapability(int cap) in SetAmbientCapability() argument
36 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0)) { in SetAmbientCapability()
/base/startup/init/services/init/adapter/
Dinit_adapter.c52 int SetAmbientCapability(int cap) in SetAmbientCapability() argument
55 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0)) { in SetAmbientCapability()
/base/startup/init/interfaces/innerkits/include/
Dsystemcapability.h28 bool HasSystemCapability(const char *cap);
/base/startup/init/interfaces/kits/syscap/include/
Dsyscap_ndk.h27 bool canIUse(const char *cap);
/base/startup/appspawn_lite/services/include/
Dappspawn_adapter.h51 int SetAmbientCapability(int cap);
/base/startup/init/services/init/include/
Dinit_adapter.h45 int SetAmbientCapability(int cap);
/base/security/permission_lite/services/pms/include/
Dperm_define.h54 unsigned int cap; member
/base/startup/appspawn/lite/
Dappspawn_process.c45 static int SetAmbientCapability(int cap) in SetAmbientCapability() argument
48 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0)) { in SetAmbientCapability()
/base/update/updater/services/ui/driver/
Ddrm_driver.cpp223 uint64_t cap = 0; in GetOneResources() local
224 int ret = drmGetCap(tmpFd, DRM_CAP_DUMB_BUFFER, &cap); in GetOneResources()
225 if (ret != 0 || cap == 0) { in GetOneResources()
/base/security/appverify/interfaces/innerkits/appverify/include/common/
Dhap_byte_buffer.h57 DLL_EXPORT void SetCapacity(int cap);
/base/security/selinux/sepolicy/base/system/
Daccess_vectors78 common cap
296 inherits cap
418 inherits cap
/base/security/appverify/interfaces/innerkits/appverify/src/common/
Dhap_byte_buffer.cpp336 void HapByteBuffer::SetCapacity(int cap) in SetCapacity() argument
344 Init(cap); in SetCapacity()
/base/security/permission_lite/services/pms/src/
Dpms_impl.c356 … if (strcmp(permissions[j].name, permList[i].name) || permList[i].cap == CAP_NOT_BINDED) { in QueryAppCapabilities()
359 capsBinded[index] = permList[i].cap; in QueryAppCapabilities()