/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);
|
/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/libsemanage/src/ |
fcontext_record.c | 247 semanage_context_t *newcon; local 249 if (semanage_context_clone(handle, con, &newcon) < 0) { 255 fcontext->con = newcon;
|
/external/selinux/libsepol/src/ |
iface_record.c | 149 sepol_context_t *newcon; local 151 if (sepol_context_clone(handle, con, &newcon) < 0) { 157 iface->netif_con = newcon; 176 sepol_context_t *newcon; local 177 if (sepol_context_clone(handle, con, &newcon) < 0) { 183 iface->netmsg_con = newcon;
|
port_record.c | 276 sepol_context_t *newcon; local 278 if (sepol_context_clone(handle, con, &newcon) < 0) { 284 port->con = newcon;
|
node_record.c | 663 sepol_context_t *newcon; local 665 if (sepol_context_clone(handle, con, &newcon) < 0) { 671 node->con = newcon;
|
/external/selinux/policycoreutils/setfiles/ |
restore.c | 107 security_context_t curcon = NULL, newcon = NULL; local 109 if (match(my_file, ftsent->fts_statp, &newcon) < 0) { 139 ret = filespec_add(ftsent->fts_statp->st_ino, newcon, my_file); 149 printf("%s: %s matched by %s\n", r_opts->progname, my_file, newcon); 156 if (strcmp(newcon, "<<none>>") == 0) { 181 if (curcon && (strcmp(curcon, newcon) == 0)) { 206 conb = context_new(newcon); 218 freecon(newcon); 219 newcon = strdup(context_str(conb)); 232 r_opts->progname, my_file, curcon ?: "", newcon); [all...] |