Home
last modified time | relevance | path

Searched refs:security_context_t (Results 1 – 25 of 30) sorted by relevance

12

/external/libselinux/include/selinux/
Dselinux.h16 typedef char *security_context_t; typedef
19 extern void freecon(security_context_t con);
22 extern void freeconary(security_context_t * con);
28 extern int getcon(security_context_t * con);
38 extern int setcon(const security_context_t con);
42 extern int getpidcon(pid_t pid, security_context_t * con);
46 extern int getprevcon(security_context_t * con);
51 extern int getexeccon(security_context_t * con);
55 extern int setexeccon(const security_context_t con);
60 extern int getfscreatecon(security_context_t * con);
[all …]
Davc.h22 security_context_t ctx;
40 int avc_sid_to_context(security_id_t sid, security_context_t * ctx);
41 int avc_sid_to_context_raw(security_id_t sid, security_context_t * ctx);
54 int avc_context_to_sid(const security_context_t ctx, security_id_t * sid);
55 int avc_context_to_sid_raw(const security_context_t ctx, security_id_t * sid);
Dlabel.h95 int selabel_lookup(struct selabel_handle *handle, security_context_t *con,
97 int selabel_lookup_raw(struct selabel_handle *handle, security_context_t *con,
/external/openssh/openbsd-compat/
Dport-linux.c60 static security_context_t
63 security_context_t sc; in ssh_selinux_getctxbyname()
111 security_context_t user_ctx = NULL; in ssh_selinux_setup_exec_context()
142 security_context_t new_tty_ctx = NULL; in ssh_selinux_setup_pty()
143 security_context_t user_ctx = NULL; in ssh_selinux_setup_pty()
144 security_context_t old_tty_ctx = NULL; in ssh_selinux_setup_pty()
189 if (getcon((security_context_t *)&oldctx) < 0) { in ssh_selinux_change_context()
226 security_context_t context; in ssh_selinux_setfscreatecon()
/external/libselinux/src/
Davc_sidtab.c16 static inline unsigned sidtab_hash(security_context_t key) in sidtab_hash()
49 int sidtab_insert(struct sidtab *s, const security_context_t ctx) in sidtab_insert()
53 security_context_t newctx; in sidtab_insert()
60 newctx = (security_context_t) strdup(ctx); in sidtab_insert()
79 const security_context_t ctx, security_id_t * sid) in sidtab_context_to_sid()
Dprocattr.c18 static int getprocattrcon(security_context_t * context, in getprocattrcon()
76 static int setprocattrcon(security_context_t context, in setprocattrcon()
116 int get##fn(security_context_t *c) \
122 int set##fn(const security_context_t c) \
132 int get##fn(pid_t pid, security_context_t *c) \
Dcompute_create.c13 int security_compute_create(const security_context_t scon, in security_compute_create()
14 const security_context_t tcon, in security_compute_create()
16 security_context_t * newcon) in security_compute_create()
Davc_sidtab.h28 int sidtab_insert(struct sidtab *s, security_context_t ctx) hidden;
31 security_context_t ctx, security_id_t * sid) hidden;
DcheckAccess.c15 int selinux_check_access(const security_context_t scon, const security_context_t tcon, const char *… in selinux_check_access()
Dlabel_internal.h42 security_context_t ctx_raw;
43 security_context_t ctx_trans;
Dcanonicalize_context.c12 int security_canonicalize_context(const security_context_t con, in security_canonicalize_context()
13 security_context_t * canoncon) in security_canonicalize_context()
Dcompute_av.c13 int security_compute_av(const security_context_t scon, in security_compute_av()
14 const security_context_t tcon, in security_compute_av()
Dcallbacks.c35 default_selinux_validate(security_context_t *ctx) in default_selinux_validate()
62 (*selinux_validate)(security_context_t *ctx) =
Dfreecon.c6 void freecon(security_context_t con) in freecon()
Dsetfilecon.c10 int setfilecon(const char *path, const security_context_t context) in setfilecon()
Dlsetfilecon.c10 int lsetfilecon(const char *path, const security_context_t context) in lsetfilecon()
Dfsetfilecon.c10 int fsetfilecon(int fd, const security_context_t context) in fsetfilecon()
Dcallbacks.h22 (*selinux_validate)(security_context_t *ctx) hidden;
Dcheck_context.c12 int security_check_context(const security_context_t con) in security_check_context()
Dgetpeercon.c14 int getpeercon(int fd, security_context_t * context) in getpeercon()
Dget_initial_context.c14 int security_get_initial_context(const char * name, security_context_t * con) in security_get_initial_context()
Dlgetfilecon.c10 int lgetfilecon(const char *path, security_context_t * context) in lgetfilecon()
Dgetfilecon.c10 int getfilecon(const char *path, security_context_t * context) in getfilecon()
/external/ipsec-tools/src/racoon/
Dpolicy.h159 extern int within_range __P((security_context_t, security_context_t));
Dsecurity.c215 within_range(security_context_t sl, security_context_t range) in within_range()

12