Searched refs:capvalue (Results 1 – 2 of 2) sorted by relevance
/third_party/ltp/testcases/kernel/security/filecaps/ |
D | verify_caps_exec.c | 214 cap_value_t capvalue[1]; in caps_actually_set_test() local 249 capvalue[0] = whichcap; in caps_actually_set_test() 251 cap_set_flag(fcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test() 272 cap_set_flag(fcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test() 273 cap_set_flag(fcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test() 293 capvalue[0] = i; in caps_actually_set_test() 294 cap_set_flag(cap_fullpi, CAP_INHERITABLE, 1, capvalue, CAP_SET); in caps_actually_set_test() 316 capvalue[0] = whichcap; in caps_actually_set_test() 326 cap_set_flag(pcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test() 330 cap_set_flag(fcap, CAP_INHERITABLE, 1, capvalue, CAP_SET); in caps_actually_set_test() [all …]
|
/third_party/musl/porting/liteos_a/user/src/linux/ |
D | cap.c | 199 unsigned int capvalue = 0; in linux_capget() local 216 if (syscall(SYS_ohoscapget, hdr_ptr->pid, &capvalue)) { in linux_capget() 220 data_ptr[0].effective = ohos_caps_to_linux(capvalue); in linux_capget() 221 data_ptr[0].permitted = ohos_caps_to_linux(capvalue); in linux_capget() 222 data_ptr[0].inheritable = ohos_caps_to_linux(capvalue); in linux_capget() 228 unsigned int capvalue = 0; in linux_capset() local 250 capvalue = linux_caps_to_ohos(data_ptr[0].effective); in linux_capset() 251 return syscall(SYS_ohoscapset, capvalue); in linux_capset()
|