Home
last modified time | relevance | path

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

/external/selinux/libselinux/src/
Denabled.c17 return (selinux_mnt ? 1 : 0); in is_selinux_enabled()
19 return (selinux_mnt && has_selinux_config); in is_selinux_enabled()
35 if (!selinux_mnt) in hidden_def()
38 snprintf(path, sizeof path, "%s/mls", selinux_mnt); in hidden_def()
Dinit.c20 char *selinux_mnt = NULL; variable
91 if (selinux_mnt) in hidden_def()
137 free(selinux_mnt); in fini_selinuxmnt()
138 selinux_mnt = NULL; in fini_selinuxmnt()
145 selinux_mnt = strdup(mnt); in hidden_def()
Dbooleans.c50 if (!selinux_mnt) { in security_get_boolean_names()
55 snprintf(path, sizeof path, "%s%s", selinux_mnt, SELINUX_BOOL_DIR); in security_get_boolean_names()
158 len = strlen(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR); in bool_open()
163 ret = snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, name); in bool_open()
177 len = strlen(alt_name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR); in bool_open()
183 ret = snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, alt_name); in bool_open()
202 if (!selinux_mnt) { in get_bool_value()
268 if (!selinux_mnt) { in security_set_boolean()
302 if (!selinux_mnt) { in security_commit_booleans()
307 snprintf(path, sizeof path, "%s/commit_pending_bools", selinux_mnt); in security_commit_booleans()
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()
Dcheckreqprot.c18 if (!selinux_mnt) { in security_get_checkreqprot()
23 snprintf(path, sizeof(path), "%s/checkreqprot", selinux_mnt); in security_get_checkreqprot()
Ddeny_unknown.c18 if (!selinux_mnt) { in security_deny_unknown()
23 snprintf(path, sizeof(path), "%s/deny_unknown", selinux_mnt); in security_deny_unknown()
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()
Dcheck_context.c17 if (!selinux_mnt) { in security_check_context_raw()
22 snprintf(path, sizeof path, "%s/context", selinux_mnt); in security_check_context_raw()
Dget_initial_context.c21 if (!selinux_mnt) { in security_get_initial_context_raw()
27 selinux_mnt, SELINUX_INITCON_DIR, name); in security_get_initial_context_raw()
Dstringrep.c61 if (!selinux_mnt) { in discover_class()
82 snprintf(path, sizeof path, "%s/class/%s/index", selinux_mnt,s); in discover_class()
97 snprintf(path, sizeof path, "%s/class/%s/perms",selinux_mnt,s); in discover_class()
107 snprintf(path, sizeof path, "%s/class/%s/perms/%s", selinux_mnt,s,dentry->d_name); in discover_class()
Dcanonicalize_context.c20 if (!selinux_mnt) { in security_canonicalize_context_raw()
25 snprintf(path, sizeof path, "%s/context", selinux_mnt); in security_canonicalize_context_raw()
Dcompute_relabel.c23 if (!selinux_mnt) { in security_compute_relabel_raw()
28 snprintf(path, sizeof path, "%s/relabel", selinux_mnt); in security_compute_relabel_raw()
Dcompute_member.c23 if (!selinux_mnt) { in security_compute_member_raw()
28 snprintf(path, sizeof path, "%s/member", selinux_mnt); in security_compute_member_raw()
Dcompute_user.c22 if (!selinux_mnt) { in security_compute_user_raw()
27 snprintf(path, sizeof path, "%s/user", selinux_mnt); in security_compute_user_raw()
Dload_policy.c31 if (!selinux_mnt) { in security_load_policy()
36 snprintf(path, sizeof path, "%s/load", selinux_mnt); in security_load_policy()
423 umount(selinux_mnt); in hidden_def()
453 umount(selinux_mnt); in hidden_def()
Dcompute_create.c62 if (!selinux_mnt) { in security_compute_create_name_raw()
67 snprintf(path, sizeof path, "%s/create", selinux_mnt); in security_compute_create_name_raw()
Dcompute_av.c24 if (!selinux_mnt) { in security_compute_av_flags_raw()
29 snprintf(path, sizeof path, "%s/access", selinux_mnt); in security_compute_av_flags_raw()
Dsestatus.c261 if (!selinux_mnt) { in selinux_status_open()
270 snprintf(path, sizeof(path), "%s/status", selinux_mnt); in selinux_status_open()
Dpolicy.h28 extern char *selinux_mnt;
Dselinux_config.c353 if (selinux_mnt) { in hidden_def()
354 snprintf(policy_path, sizeof(policy_path), "%s/policy", selinux_mnt); in hidden_def()
/external/selinux/libselinux/utils/
Davcstat.c44 extern char *selinux_mnt;
74 printf("AVC statistics file, defaulting to \'%s%s\'.\n\n", selinux_mnt, in usage()
101 snprintf(avcstatfile, sizeof avcstatfile, "%s%s", selinux_mnt, in main()
/external/selinux/policycoreutils/sestatus/
Dsestatus.c35 extern char *selinux_mnt;
238 if (selinux_mnt != NULL) { in main()
239 printf("%s\n", selinux_mnt); in main()