Home
last modified time | relevance | path

Searched refs:newcon (Results 1 – 16 of 16) sorted by relevance

/external/selinux/libselinux/src/
Dsetexecfilecon.c9 char * mycon = NULL, *fcon = NULL, *newcon = NULL; in setexecfilecon() local
24 rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &newcon); in setexecfilecon()
28 if (!strcmp(mycon, newcon)) { in setexecfilecon()
36 freecon(newcon); in setexecfilecon()
37 newcon = strdup(context_str(con)); in setexecfilecon()
38 if (!newcon) in setexecfilecon()
43 rc = setexeccon(newcon); in setexecfilecon()
52 freecon(newcon); in setexecfilecon()
Dget_context_list.c16 char ** newcon) in get_default_context_with_role() argument
45 *newcon = strdup(*ptr); in get_default_context_with_role()
46 if (!(*newcon)) in get_default_context_with_role()
60 char ** newcon) in hidden_def()
69 newcon); in hidden_def()
90 rc = get_default_context_with_role(user, role, newfromcon, newcon); in hidden_def()
101 char * fromcon, char ** newcon) in get_default_context() argument
110 *newcon = strdup(conary[0]); in get_default_context()
112 if (!(*newcon)) in get_default_context()
271 static int get_failsafe_context(const char *user, char ** newcon) in get_failsafe_context() argument
[all …]
Dcompute_create.c55 char ** newcon) in security_compute_create_name_raw() argument
96 *newcon = strdup(buf); in security_compute_create_name_raw()
97 if (!(*newcon)) { in security_compute_create_name_raw()
113 char ** newcon) in hidden_def()
116 NULL, newcon); in hidden_def()
124 char ** newcon) in hidden_def()
143 ret = selinux_raw_to_trans_context(rnewcon, newcon); in hidden_def()
154 char ** newcon) in hidden_def()
156 return security_compute_create_name(scon, tcon, tclass, NULL, newcon); in hidden_def()
Dcompute_member.c16 char ** newcon) in security_compute_member_raw() argument
50 *newcon = strdup(buf); in security_compute_member_raw()
51 if (!(*newcon)) { in security_compute_member_raw()
68 char ** newcon) in hidden_def()
87 if (selinux_raw_to_trans_context(rnewcon, newcon)) { in hidden_def()
88 *newcon = NULL; in hidden_def()
Dcompute_relabel.c16 char ** newcon) in security_compute_relabel_raw() argument
50 *newcon = strdup(buf); in security_compute_relabel_raw()
51 if (!*newcon) { in security_compute_relabel_raw()
68 char ** newcon) in hidden_def()
87 ret = selinux_raw_to_trans_context(rnewcon, newcon); in hidden_def()
Dquery_user_context.c106 int manual_user_enter_context(const char *user, char ** newcon) in manual_user_enter_context() argument
175 *newcon = strdup(user_context); in manual_user_enter_context()
177 if (!(*newcon)) in manual_user_enter_context()
/external/selinux/libselinux/include/selinux/
Dget_context_list.h39 char ** newcon);
46 char ** newcon);
54 char ** newcon);
63 char ** newcon);
70 char ** newcon);
77 char ** newcon);
Dselinux.h211 char ** newcon);
215 char ** newcon);
220 char ** newcon);
225 char ** newcon);
232 char ** newcon);
236 char ** newcon);
243 char ** newcon);
247 char ** newcon);
/external/selinux/policycoreutils/setfiles/
Drestore.c107 security_context_t curcon = NULL, newcon = NULL; in restore() local
109 if (match(my_file, ftsent->fts_statp, &newcon) < 0) { in restore()
139 ret = filespec_add(ftsent->fts_statp->st_ino, newcon, my_file); in restore()
149 printf("%s: %s matched by %s\n", r_opts->progname, my_file, newcon); in restore()
156 if (strcmp(newcon, "<<none>>") == 0) { in restore()
181 if (curcon && (strcmp(curcon, newcon) == 0)) { in restore()
206 conb = context_new(newcon); in restore()
218 freecon(newcon); in restore()
219 newcon = strdup(context_str(conb)); in restore()
232 r_opts->progname, my_file, curcon ?: "", newcon); in restore()
[all …]
/external/selinux/libsepol/src/
Diface_record.c149 sepol_context_t *newcon; in hidden_def() local
151 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def()
157 iface->netif_con = newcon; in hidden_def()
176 sepol_context_t *newcon; in hidden_def() local
177 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def()
183 iface->netmsg_con = newcon; in hidden_def()
Dport_record.c276 sepol_context_t *newcon; in hidden_def() local
278 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def()
284 port->con = newcon; in hidden_def()
Dnode_record.c663 sepol_context_t *newcon; in hidden_def() local
665 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def()
671 node->con = newcon; in hidden_def()
/external/libselinux/src/
Dcompute_create.c16 char ** newcon) in security_compute_create() argument
50 *newcon = strdup(buf); in security_compute_create()
51 if (!(*newcon)) { in security_compute_create()
/external/selinux/libselinux/utils/
Dselinuxexeccon.c20 char * fcon = NULL, *newcon = NULL; in get_selinux_proc_context() local
24 ret = security_compute_create(execcon, fcon, string_to_security_class("process"), &newcon); in get_selinux_proc_context()
29 return newcon; in get_selinux_proc_context()
/external/libselinux/include/selinux/
Dselinux.h175 char ** newcon);
182 char ** newcon);
189 char ** newcon);
/external/selinux/libsemanage/src/
Dfcontext_record.c247 semanage_context_t *newcon; in hidden_def() local
249 if (semanage_context_clone(handle, con, &newcon) < 0) { in hidden_def()
255 fcontext->con = newcon; in hidden_def()