Home
last modified time | relevance | path

Searched refs:selinux_mnt (Results 1 – 15 of 15) sorted by relevance

/external/libselinux/src/
Dinit.c24 char *selinux_mnt = NULL; variable
36 if (selinux_mnt) in init_selinuxmnt()
46 selinux_mnt = strdup(SELINUXMNT); in init_selinuxmnt()
91 selinux_mnt = strdup(p); in init_selinuxmnt()
101 free(selinux_mnt); in fini_selinuxmnt()
102 selinux_mnt = NULL; in fini_selinuxmnt()
107 selinux_mnt = strdup(mnt); in set_selinuxmnt()
Dbooleans.c44 if (!selinux_mnt) { in security_get_boolean_names()
49 snprintf(path, sizeof path, "%s%s", selinux_mnt, SELINUX_BOOL_DIR); in security_get_boolean_names()
91 if (!selinux_mnt) { in hidden_def()
101 len = strlen(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR); in hidden_def()
105 snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, name); in hidden_def()
166 if (!selinux_mnt) { in hidden_def()
175 len = strlen(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR); in hidden_def()
179 snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, name); in hidden_def()
211 if (!selinux_mnt) { in hidden_def()
216 snprintf(path, sizeof path, "%s/commit_pending_bools", selinux_mnt); in hidden_def()
Denabled.c23 if (selinux_mnt) { in is_selinux_enabled()
78 if (!selinux_mnt) in hidden_def()
81 snprintf(path, sizeof path, "%s/mls", selinux_mnt); in hidden_def()
Dcheck_context.c17 if (!selinux_mnt) { in security_check_context()
22 snprintf(path, sizeof path, "%s/context", selinux_mnt); in security_check_context()
Dload_policy.c24 if (!selinux_mnt) { in security_load_policy()
29 snprintf(path, sizeof path, "%s/load", selinux_mnt); in security_load_policy()
Ddisable.c18 if (!selinux_mnt) { in security_disable()
23 snprintf(path, sizeof path, "%s/disable", selinux_mnt); in security_disable()
Dsetenforce.c18 if (!selinux_mnt) { in security_setenforce()
23 snprintf(path, sizeof path, "%s/enforce", selinux_mnt); in security_setenforce()
Dgetenforce.c18 if (!selinux_mnt) { in security_getenforce()
23 snprintf(path, sizeof path, "%s/enforce", selinux_mnt); in security_getenforce()
Dpolicyvers.c20 if (!selinux_mnt) { in security_policyvers()
25 snprintf(path, sizeof path, "%s/policyvers", selinux_mnt); in security_policyvers()
Dget_initial_context.c21 if (!selinux_mnt) { in security_get_initial_context()
27 selinux_mnt, SELINUX_INITCON_DIR, name); in security_get_initial_context()
Dcanonicalize_context.c20 if (!selinux_mnt) { in security_canonicalize_context()
25 snprintf(path, sizeof path, "%s/context", selinux_mnt); in security_canonicalize_context()
Dcompute_create.c23 if (!selinux_mnt) { in security_compute_create()
28 snprintf(path, sizeof path, "%s/create", selinux_mnt); in security_compute_create()
Dstringrep.c65 if (!selinux_mnt) { in discover_class()
86 snprintf(path, sizeof path, "%s/class/%s/index", selinux_mnt,s); in discover_class()
101 snprintf(path, sizeof path, "%s/class/%s/perms",selinux_mnt,s); in discover_class()
111 snprintf(path, sizeof path, "%s/class/%s/perms/%s", selinux_mnt,s,dentry->d_name); in discover_class()
Dcompute_av.c24 if (!selinux_mnt) { in security_compute_av()
29 snprintf(path, sizeof path, "%s/access", selinux_mnt); in security_compute_av()
Dpolicy.h16 extern char *selinux_mnt;