Home
last modified time | relevance | path

Searched refs:CAP_INHERITABLE (Results 1 – 16 of 16) sorted by relevance

/external/libcap/libcap/
Dcap_file.c100 result->u[i].flat[CAP_INHERITABLE] in _fcaps_load()
106 = result->u[i].flat[CAP_INHERITABLE] in _fcaps_load()
111 result->u[i].flat[CAP_INHERITABLE] in _fcaps_load()
169 || cap_d->u[i].flat[CAP_INHERITABLE] in _fcaps_save()
184 = FIXUP_32BITS(cap_d->u[i].flat[CAP_INHERITABLE]); in _fcaps_save()
189 | cap_d->u[i].flat[CAP_INHERITABLE]))) { in _fcaps_save()
Dcap_flag.c103 case CAP_INHERITABLE: in cap_clear_flag()
141 | ((a->u[i].flat[CAP_INHERITABLE] != b->u[i].flat[CAP_INHERITABLE]) in cap_compare()
231 case CAP_INHERITABLE: in cap_iab_fill()
Dcap_text.c181 _cap_debugcap("i = ", *res, CAP_INHERITABLE); in cap_from_text()
249 clrbits(res, list, CAP_INHERITABLE, cap_blks); in cap_from_text()
259 setbits(res, list, CAP_INHERITABLE, cap_blks); in cap_from_text()
268 clrbits(res, list, CAP_INHERITABLE, cap_blks); in cap_from_text()
344 if (isset_cap(caps, capno, CAP_INHERITABLE)) { in getstateflags()
368 _cap_debugcap("i = ", *caps, CAP_INHERITABLE); in cap_to_text()
Dcap_proc.c437 (void) cap_clear_flag(working, CAP_INHERITABLE); in _cap_set_mode()
527 if (CAP_DIFFERS(cf, CAP_INHERITABLE)) { in cap_get_mode()
666 cap_iab_fill(iab, CAP_IAB_INH, current, CAP_INHERITABLE); in cap_iab_get_proc()
694 __u32 oldIP = temp->u[i].flat[CAP_INHERITABLE] | in _cap_iab_set_proc()
697 temp->u[i].flat[CAP_INHERITABLE] = newI; in _cap_iab_set_proc()
Dlibcap.h158 #define LIBCAP_INH (1 << CAP_INHERITABLE)
/external/ltp/testcases/kernel/security/cap_bound/
Dcap_bset_inh_bounds.c75 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_INHERITABLE, &f); in main()
92 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_INHERITABLE, &f); in main()
103 ret = cap_set_flag(tmpcap, CAP_INHERITABLE, 1, v, CAP_CLEAR); in main()
Dexec_without_inh.c53 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_INHERITABLE, &f); in main()
56 ret = cap_set_flag(cur, CAP_INHERITABLE, 1, v, CAP_CLEAR); in main()
Dexec_with_inh.c67 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_INHERITABLE, &f); in main()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl07.c126 cap_set_flag(caps, CAP_INHERITABLE, numcaps, caplist, CAP_SET); in verify_prctl()
132 cap_clear_flag(caps, CAP_INHERITABLE); in verify_prctl()
136 cap_set_flag(caps, CAP_INHERITABLE, numcaps, caplist, CAP_SET); in verify_prctl()
/external/libcap/progs/
Dsetcap.c185 CAP_DIFFERS(cmp, CAP_INHERITABLE) ? "i" : "", in main()
226 cap_get_flag(cap_d, cap, CAP_INHERITABLE, &inh_state); in main()
Dcapsh.c426 if (cap_clear_flag(all, CAP_INHERITABLE) != 0) { in main()
868 if (cap_get_flag(orig, cap, CAP_INHERITABLE, &enabled) in main()
/external/libcap/pam_cap/
Dtest_pam_cap.c112 if (cap_get_flag(prev, i, CAP_INHERITABLE, &u) != 0) { in load_vectors()
134 cap_clear_flag(orig, CAP_INHERITABLE); in main()
Dpam_cap.c217 cap_clear_flag(cap_s, CAP_INHERITABLE); in set_capabilities()
/external/ltp/testcases/kernel/security/filecaps/
Dverify_caps_exec.c294 cap_set_flag(cap_fullpi, CAP_INHERITABLE, 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()
/external/libcap/libcap/include/sys/
Dcapability.h62 CAP_INHERITABLE = 2 /* Specifies the inheritable flag */ enumerator
/external/minijail/
Dlibminijail.c2042 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_SET)) in drop_caps()
2079 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_CLEAR)) in drop_caps()