Home
last modified time | relevance | path

Searched refs:cap_t (Results 1 – 25 of 45) sorted by relevance

12

/external/libcap/libcap/include/sys/
Dcapability.h39 typedef struct _cap_struct *cap_t; typedef
71 extern cap_t cap_dup(cap_t);
73 extern cap_t cap_init(void);
76 extern int cap_get_flag(cap_t, cap_value_t, cap_flag_t, cap_flag_value_t *);
77 extern int cap_set_flag(cap_t, cap_flag_t, int, const cap_value_t *,
79 extern int cap_clear(cap_t);
80 extern int cap_clear_flag(cap_t, cap_flag_t);
83 extern cap_t cap_get_fd(int);
84 extern cap_t cap_get_file(const char *);
85 extern int cap_set_fd(int, cap_t);
[all …]
/external/libcap/libcap/
Dcap_file.c40 static cap_t _fcaps_load(struct vfs_cap_data *rawvfscap, cap_t result, in _fcaps_load()
98 static int _fcaps_save(struct vfs_cap_data *rawvfscap, cap_t cap_d, in _fcaps_save()
186 cap_t cap_get_fd(int fildes) in cap_get_fd()
188 cap_t result; in cap_get_fd()
216 cap_t cap_get_file(const char *filename) in cap_get_file()
218 cap_t result; in cap_get_file()
247 int cap_set_fd(int fildes, cap_t cap_d) in cap_set_fd()
279 int cap_set_file(const char *filename, cap_t cap_d) in cap_set_file()
308 cap_t cap_get_fd(int fildes) in cap_get_fd()
314 cap_t cap_get_file(const char *filename) in cap_get_file()
[all …]
Dcap_proc.c11 cap_t cap_get_proc(void) in cap_get_proc()
13 cap_t result; in cap_get_proc()
30 int cap_set_proc(cap_t cap_d) in cap_set_proc()
49 int capgetp(pid_t pid, cap_t cap_d) in capgetp()
69 cap_t cap_get_pid(pid_t pid) in cap_get_pid()
71 cap_t result; in cap_get_pid()
90 int capsetp(pid_t pid, cap_t cap_d) in capsetp()
Dcap_alloc.c14 cap_t cap_init(void) in cap_init()
17 cap_t result; in cap_init()
28 result = (cap_t) (raw_data + 1); in cap_init()
88 cap_t cap_dup(cap_t cap_d) in cap_dup()
90 cap_t result; in cap_dup()
Dcap_flag.c16 int cap_get_flag(cap_t cap_d, cap_value_t value, cap_flag_t set, in cap_get_flag()
39 int cap_set_flag(cap_t cap_d, cap_flag_t set, in cap_set_flag()
80 int cap_clear(cap_t cap_d) in cap_clear()
100 int cap_clear_flag(cap_t cap_d, cap_flag_t flag) in cap_clear_flag()
129 int cap_compare(cap_t a, cap_t b) in cap_compare()
Dcap_extint.c32 ssize_t cap_size(cap_t caps) in cap_size()
43 ssize_t cap_copy_ext(void *cap_ext, cap_t cap_d, ssize_t length) in cap_copy_ext()
82 cap_t cap_copy_int(const void *cap_ext) in cap_copy_int()
86 cap_t cap_d; in cap_copy_int()
Dcap_text.c28 static void setbits(cap_t a, const __u32 *b, cap_flag_t set, unsigned blks) in setbits()
36 static void clrbits(cap_t a, const __u32 *b, cap_flag_t set, unsigned blks) in clrbits()
110 cap_t cap_from_text(const char *str) in cap_from_text()
112 cap_t res; in cap_from_text()
307 static int getstateflags(cap_t caps, int capno) in getstateflags()
326 char *cap_to_text(cap_t caps, ssize_t *length_p) in cap_to_text()
Dlibcap.h190 extern int capgetp(pid_t pid, cap_t cap_d);
191 extern int capsetp(pid_t pid, cap_t cap_d);
/external/crosvm/sys_util/src/
Dcapabilities.rs10 type cap_t = *mut c_void; typedef
14 fn cap_init() -> cap_t; in cap_init()
16 fn cap_set_proc(cap: cap_t) -> c_int; in cap_set_proc()
/external/ltp/testcases/kernel/security/filecaps/
Dverify_caps_exec.c68 cap_t cap = cap_get_proc(); in print_my_caps()
87 cap_t cap = cap_from_text("=eip"); in drop_root()
102 cap_t cap; in perms_test()
154 static int fork_drop_and_exec(int keepperms, cap_t expected_caps) in fork_drop_and_exec()
161 cap_t actual_caps; in fork_drop_and_exec()
213 cap_t fcap, pcap, cap_fullpi; in caps_actually_set_test()
315 cap_t cmpcap; in caps_actually_set_test()
Dcheck_simple_capset.c31 cap_t caps, caps2; in main()
Dprint_caps.c45 cap_t cap = cap_get_proc(); in main()
Dinh_capped.c49 cap_t caps = cap_from_text(capstr); in set_caps_from_text()
/external/libcap/progs/old/
Dsucap.c54 cap_t old_caps; in main()
144 cap_t cap = cap_init(); in main()
168 cap_t cap = cap_init(); in main()
Dexeccap.c34 cap_t new_caps; in main()
/external/libcap/progs/
Dsetcap.c64 cap_t mycaps; in main()
79 cap_t cap_d; in main()
124 cap_t cap_on_file; in main()
Dcapsh.c56 cap_t orig, raised_for_setpcap; in main()
126 cap_t all, raised_for_setpcap; in main()
195 cap_t all, raised_for_setpcap; in main()
250 cap_t orig, raised_for_chroot; in main()
487 cap_t all; in main()
Dgetpcaps.c36 cap_t cap_d; in main()
/external/u-boot/drivers/tpm/
Dtpm_tis.h73 union cap_t { union
86 union cap_t cap;
/external/ltp/testcases/kernel/security/securebits/
Dcheck_keepcaps.c34 static int eff_caps_empty(cap_t c) in eff_caps_empty()
62 cap_t cap = cap_get_proc(); in am_privileged()
/external/ltp/testcases/kernel/containers/userns/
Duserns06_capcheck.c43 cap_t caps; in main()
/external/libcap/contrib/bug400591/
Dbug.c13 cap_t caps, caps2; in main()
/external/ltp/testcases/kernel/security/cap_bound/
Dcheck_pe.c48 cap_t cur; in main()
Dexec_without_inh.c49 cap_t cur; in main()
Dexec_with_inh.c48 cap_t cur = 0; in main()

12