Home
last modified time | relevance | path

Searched refs:cap_value_t (Results 1 – 25 of 26) sorted by relevance

12

/external/libcap/libcap/include/sys/
Dcapability.h47 typedef int cap_value_t; typedef
54 extern cap_value_t cap_max_bits(void);
113 extern int cap_get_flag(cap_t, cap_value_t, cap_flag_t, cap_flag_value_t *);
114 extern int cap_set_flag(cap_t, cap_flag_t, int, const cap_value_t *,
120 cap_value_t);
121 extern int cap_iab_set_vector(cap_iab_t, cap_iab_vector_t, cap_value_t,
138 extern int cap_get_bound(cap_value_t);
139 extern int cap_drop_bound(cap_value_t);
142 extern int cap_get_ambient(cap_value_t);
143 extern int cap_set_ambient(cap_value_t, cap_flag_value_t);
[all …]
/external/libcap/libcap/
Dcap_test.c3 static cap_value_t top;
5 static int cf(cap_value_t x) { in cf()
10 static cap_value_t vs[] = { in test_cap_bits()
14 cap_value_t i; in test_cap_bits()
16 cap_value_t ans; in test_cap_bits()
Dcap_proc.c268 int cap_get_bound(cap_value_t cap) in cap_get_bound()
280 static int _cap_drop_bound(struct syscaller_s *sc, cap_value_t cap) in _cap_drop_bound()
294 int cap_drop_bound(cap_value_t cap) { in cap_drop_bound()
300 int cap_get_ambient(cap_value_t cap) in cap_get_ambient()
313 cap_value_t cap, cap_flag_value_t set) in _cap_set_ambient()
339 int cap_set_ambient(cap_value_t cap, cap_flag_value_t set) in cap_set_ambient()
347 cap_value_t c; in _cap_reset_ambient()
419 static cap_value_t raise_cap_setpcap[] = {CAP_SETPCAP};
506 cap_value_t c; in cap_get_mode()
549 const cap_value_t raise_cap_setuid[] = {CAP_SETUID}; in _cap_setuid()
[all …]
Dcap_flag.c18 int cap_get_flag(cap_t cap_d, cap_value_t value, cap_flag_t set, in cap_get_flag()
42 int no_values, const cap_value_t *array_values, in cap_set_flag()
153 cap_value_t bit) in cap_iab_get_vector()
182 int cap_iab_set_vector(cap_iab_t iab, cap_iab_vector_t vec, cap_value_t bit, in cap_iab_set_vector()
Dcap_text.c72 cap_value_t cmb = cap_max_bits(); in forceall()
297 int cap_from_name(const char *name, cap_value_t *value_p) in cap_from_name()
310 char *cap_to_name(cap_value_t cap) in cap_to_name()
374 cap_value_t cmb = cap_max_bits(); in cap_to_text()
507 cap_value_t c, cmb = cap_max_bits(); in cap_iab_to_text()
574 cap_value_t c = lookupname(&text); in cap_iab_from_text()
Dcap_alloc.c13 static cap_value_t _cap_max_bits;
23 cap_value_t cap_max_bits(void) { in cap_max_bits()
Dlibcap.h221 cap_value_t min = low, max = high; \
223 cap_value_t mid = (min+max) / 2; \
/external/crosvm/devices/src/virtio/fs/
Dcaps.rs13 pub type cap_value_t = u32; typedef
29 caps: *const cap_value_t, in cap_set_flag() argument
80 impl From<Capability> for cap_value_t { implementation
81 fn from(c: Capability) -> cap_value_t { in from() argument
82 c as cap_value_t in from()
135 caps.as_ptr() as *const cap_value_t, in update() constant
/external/libcap/progs/
Dcapsh.c51 static void display_prctl_set(const char *name, int (*fn)(cap_value_t)) in display_prctl_set() argument
160 static const cap_value_t raise_setpcap[1] = { CAP_SETPCAP };
161 static const cap_value_t raise_chroot[1] = { CAP_SYS_CHROOT };
236 cap_value_t cap; in arg_drop()
303 cap_value_t cap; in arg_change_amb()
391 cap_value_t cap; in main()
815 cap_value_t cap; in main()
842 cap_value_t cap; in main()
858 cap_value_t cap; in main()
875 cap_value_t cap; in main()
Dsetcap.c74 cap_value_t capflag; in main()
218 cap_value_t cap; in main()
/external/ltp/testcases/kernel/security/cap_bound/
Dexec_without_inh.c48 cap_value_t v[1]; in main()
Dcap_bset_inh_bounds.c47 cap_value_t v[1]; in main()
/external/libcap/go/
Dcompare-cap.go347 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_INH, C.cap_value_t(int(c)), C.CAP_SET) != 0 {
354 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_AMB, C.cap_value_t(int(c)), C.CAP_SET) != 0 {
361 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_BOUND, C.cap_value_t(int(c)), C.CAP_SET) != 0 {
/external/ltp/testcases/kernel/syscalls/pivot_root/
Dpivot_root01.c80 cap_value_t cap_value[] = { CAP_SYS_ADMIN }; in drop_cap_sys_admin()
/external/libwebsockets/lib/plat/unix/
Dunix-caps.c35 _lws_plat_apply_caps(int mode, const cap_value_t *cv, int count) in _lws_plat_apply_caps()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl07.c122 cap_value_t caplist[3] = {CAP_NET_RAW, CAP_NET_BIND_SERVICE, CAP_SETPCAP}; in verify_prctl()
/external/iputils/
Dping_common.c70 static cap_value_t cap_raw = CAP_NET_RAW;
71 static cap_value_t cap_admin = CAP_NET_ADMIN;
139 int modify_capability(cap_value_t cap, cap_flag_value_t on) in modify_capability()
Dping_common.h264 extern int modify_capability(cap_value_t, cap_flag_value_t);
Darping.c152 static const cap_value_t caps[] = { CAP_NET_RAW, };
/external/iputils/ninfod/
Dninfod.c499 static const cap_value_t cap_net_raw = CAP_NET_RAW;
500 static const cap_value_t cap_setuid = CAP_SETUID;
/external/linux-kselftest/tools/testing/selftests/safesetid/
Dsafesetid-test.c272 cap_value_t cap_values[] = {CAP_SETUID, CAP_SETGID}; in drop_caps()
/external/libwebsockets/include/libwebsockets/
Dlws-context-vhost.h522 cap_value_t caps[4];
/external/ltp/testcases/kernel/security/filecaps/
Dverify_caps_exec.c214 cap_value_t capvalue[1]; in caps_actually_set_test()
/external/libwebsockets/lib/core/
Dprivate-lib-core.h462 cap_value_t caps[4];
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c814 const cap_value_t cap_val = CAP_SYS_ADMIN; in set_admin()
1057 const cap_value_t cap_val = CAP_SYS_ADMIN; in is_admin()

12