/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_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;
|
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_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);
|
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...] |
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...] |
query_user_context.c | 106 int manual_user_enter_context(const char *user, char ** newcon) 175 *newcon = strdup(user_context); 177 if (!(*newcon))
|
/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/man/man3/ |
security_compute_av.3 | 18 .BI "int security_compute_create(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon ); 20 .BI "int security_compute_create_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon ); 22 .BI "int security_compute_create_name(char *" scon ", char *" tcon ", security_class_t "tclass ", const char *" objname ", char **" newcon ); 24 .BI "int security_compute_create_name_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", const char *" objname ", char **" newcon ); 26 .BI "int security_compute_relabel(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon ); 28 .BI "int security_compute_relabel_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon ); 30 .BI "int security_compute_member(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon ); 32 .BI "int security_compute_member_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon ); 84 .I newcon
|
get_ordered_context_list.3 | 14 .BI "int get_default_context(const char *" user ", char *" fromcon ", char **" newcon ); 16 .BI "int get_default_context_with_level(const char *" user ", const char *" level ", char *" fromcon ", char **" newcon ); 18 .BI "int get_default_context_with_role(const char *" user ", const char *" role ", char *" fromcon ", char **" newcon "); 20 .BI "int get_default_context_with_rolelevel(const char *" user ", const char *" role ", const char *" level ", char *" fromcon ", char **" newcon "); 22 .BI "int query_user_context(char **" list ", char **" newcon ); 24 .BI "int manual_user_enter_context(const char *" user ", char **" 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/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;
|
ibendport_record.c | 286 sepol_context_t *newcon; local 288 if (sepol_context_clone(handle, con, &newcon) < 0) { 294 ibendport->con = newcon;
|
ibpkey_record.c | 367 sepol_context_t *newcon; local 369 if (sepol_context_clone(handle, con, &newcon) < 0) { 375 ibpkey->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;
|