Home
last modified time | relevance | path

Searched refs:cap_data (Results 1 – 3 of 3) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dcapset.c28 struct __user_cap_data_struct cap_data; in capset_0100() local
33 if (capget(&cap_header, &cap_data) < 0) { in capset_0100()
38 printf("capdata: %x %x %x\n", cap_data.effective, cap_data.permitted, cap_data.inheritable); in capset_0100()
42 cap_data.effective = cap_mask; in capset_0100()
43 cap_data.permitted = cap_mask; in capset_0100()
44 cap_data.inheritable = 0; in capset_0100()
46 if (capset(&cap_header, &cap_data) < 0) { in capset_0100()
49 printf("%d\n", capget(&cap_header, &cap_data)); in capset_0100()
51 printf("capdata: %x %x %x\n", cap_data.effective, cap_data.permitted, cap_data.inheritable); in capset_0100()
Dcapget.c31 cap_user_data_t cap_data = &cap_data_data; in capget_0100() local
36 int result = capget(cap_header, cap_data); in capget_0100()
41 …printf("Cap data 0x%x, 0x%x, 0x%x \n", cap_data->effective, cap_data->permitted, cap_data->inherit… in capget_0100()
52 cap_user_data_t cap_data = &cap_data_data; in capget_0200() local
54 int result = capget(NULL, cap_data); in capget_0200()
/third_party/node/src/
Dnode_credentials.cc55 struct __user_cap_data_struct cap_data[_LINUX_CAPABILITY_U32S_3]; in HasOnly() local
61 if (syscall(SYS_capget, &cap_header_data, &cap_data) != 0) { in HasOnly()
65 static_assert(arraysize(cap_data) == 2); in HasOnly()
66 return cap_data[CAP_TO_INDEX(capability)].permitted == in HasOnly()
68 cap_data[1 - CAP_TO_INDEX(capability)].permitted == 0; in HasOnly()