/base/startup/init/interfaces/innerkits/syscap/ |
D | init_syscap.c | 30 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/ |
D | syscap_ndk.c | 20 bool canIUse(const char *cap) in canIUse() argument 22 return HasSystemCapability(cap); in canIUse()
|
/base/startup/appspawn_lite/services/src/ |
D | appspawn_adapter.c | 33 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/ |
D | init_adapter.c | 52 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/ |
D | systemcapability.h | 28 bool HasSystemCapability(const char *cap);
|
/base/startup/init/interfaces/kits/syscap/include/ |
D | syscap_ndk.h | 27 bool canIUse(const char *cap);
|
/base/startup/appspawn_lite/services/include/ |
D | appspawn_adapter.h | 51 int SetAmbientCapability(int cap);
|
/base/startup/init/services/init/include/ |
D | init_adapter.h | 45 int SetAmbientCapability(int cap);
|
/base/security/permission_lite/services/pms/include/ |
D | perm_define.h | 54 unsigned int cap; member
|
/base/startup/appspawn/lite/ |
D | appspawn_process.c | 45 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/ |
D | drm_driver.cpp | 223 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/ |
D | hap_byte_buffer.h | 57 DLL_EXPORT void SetCapacity(int cap);
|
/base/security/selinux/sepolicy/base/system/ |
D | access_vectors | 78 common cap 296 inherits cap 418 inherits cap
|
/base/security/appverify/interfaces/innerkits/appverify/src/common/ |
D | hap_byte_buffer.cpp | 336 void HapByteBuffer::SetCapacity(int cap) in SetCapacity() argument 344 Init(cap); in SetCapacity()
|
/base/security/permission_lite/services/pms/src/ |
D | pms_impl.c | 356 … if (strcmp(permissions[j].name, permList[i].name) || permList[i].cap == CAP_NOT_BINDED) { in QueryAppCapabilities() 359 capsBinded[index] = permList[i].cap; in QueryAppCapabilities()
|