/external/selinux/libselinux/include/selinux/ |
get_context_list.h | 31 spawned by 'fromcon' and set *newcon to refer to it. The context 39 char ** newcon); 46 char ** newcon); 54 char ** newcon); 63 char ** newcon); 66 query the user to select one and set *newcon to refer to it. 70 char ** newcon); 77 char ** newcon);
|
selinux.h | 206 /* Compute a labeling decision and set *newcon to refer to it. 211 char ** newcon); 215 char ** newcon); 220 char ** newcon); 225 char ** newcon); 227 /* Compute a relabeling decision and set *newcon to refer to it. 232 char ** newcon); 236 char ** newcon); 238 /* Compute a polyinstantiation member decision and set *newcon to refer to it. 243 char ** newcon); [all...] |
/external/selinux/libselinux/src/ |
setexecfilecon.c | 9 char * mycon = NULL, *fcon = NULL, *newcon = NULL; local 24 rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &newcon); 28 if (!strcmp(mycon, newcon)) { 36 freecon(newcon); 37 newcon = strdup(context_str(con)); 38 if (!newcon) 43 rc = setexeccon(newcon); 52 freecon(newcon);
|
compute_create.c | 55 char ** newcon) 96 *newcon = strdup(buf); 97 if (!(*newcon)) { 113 char ** newcon) 116 NULL, newcon); 124 char ** newcon) 143 ret = selinux_raw_to_trans_context(rnewcon, newcon); 154 char ** newcon) 156 return security_compute_create_name(scon, tcon, tclass, NULL, newcon);
|
compute_relabel.c | 16 char ** newcon) 50 *newcon = strdup(buf); 51 if (!*newcon) { 68 char ** newcon) 87 ret = selinux_raw_to_trans_context(rnewcon, newcon);
|
compute_member.c | 16 char ** newcon) 50 *newcon = strdup(buf); 51 if (!(*newcon)) { 68 char ** newcon) 87 if (selinux_raw_to_trans_context(rnewcon, newcon)) { 88 *newcon = NULL;
|
get_context_list.c | 16 char ** newcon) 45 *newcon = strdup(*ptr); 46 if (!(*newcon)) 60 char ** newcon) 69 newcon); 90 rc = get_default_context_with_role(user, role, newfromcon, newcon); 101 char * fromcon, char ** newcon) 110 *newcon = strdup(conary[0]); 112 if (!(*newcon)) 271 static int get_failsafe_context(const char *user, char ** newcon) [all...] |
query_user_context.c | 106 int manual_user_enter_context(const char *user, char ** newcon) 175 *newcon = strdup(user_context); 177 if (!(*newcon))
|
selinux_restorecon.c | 547 static int compare_types(char *curcon, char *newcon, char **newtypecon) 559 conb = context_new(newcon); 590 char *newcon = NULL; local 610 rc = selabel_lookup_raw(fc_sehandle, &newcon, "/", 613 rc = selabel_lookup_raw(fc_sehandle, &newcon, lookup_path, 640 rc = filespec_add(sb->st_ino, newcon, pathname); 645 freecon(newcon); 651 freecon(newcon); 658 pathname, newcon); 667 if (curcon == NULL || strcmp(curcon, newcon) != 0) [all...] |
/external/selinux/libselinux/utils/ |
selinuxexeccon.c | 20 char * fcon = NULL, *newcon = NULL; local 24 ret = security_compute_create(execcon, fcon, string_to_security_class("process"), &newcon); 29 return newcon;
|
/external/selinux/libsepol/src/ |
iface_record.c | 157 sepol_context_t *newcon; local 159 if (sepol_context_clone(handle, con, &newcon) < 0) { 165 iface->netif_con = newcon; 184 sepol_context_t *newcon; local 185 if (sepol_context_clone(handle, con, &newcon) < 0) { 191 iface->netmsg_con = newcon;
|
port_record.c | 278 sepol_context_t *newcon; local 280 if (sepol_context_clone(handle, con, &newcon) < 0) { 286 port->con = newcon;
|
node_record.c | 655 sepol_context_t *newcon; local 657 if (sepol_context_clone(handle, con, &newcon) < 0) { 663 node->con = newcon;
|
/external/selinux/libsemanage/src/ |
fcontext_record.c | 247 semanage_context_t *newcon; local 249 if (semanage_context_clone(handle, con, &newcon) < 0) { 255 fcontext->con = newcon;
|