/external/selinux/libselinux/src/ |
D | setexecfilecon.c | 9 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()
|
D | get_context_list.c | 16 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 …]
|
D | compute_create.c | 55 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()
|
D | compute_member.c | 16 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()
|
D | compute_relabel.c | 16 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()
|
D | validatetrans.c | 16 const char *newcon) in security_validatetrans_raw() argument 41 bufsz = snprintf(buf, size, "%s %s %hu %s", scon, tcon, unmap_class(tclass), newcon); in security_validatetrans_raw() 65 const char *newcon) in hidden_def() 80 if (selinux_trans_to_raw_context(newcon, &rnewcon)) { in hidden_def()
|
D | selinux_restorecon.c | 555 static int compare_types(char *curcon, char *newcon, char **newtypecon) in compare_types() argument 567 conb = context_new(newcon); in compare_types() 598 char *newcon = NULL; in restorecon_sb() local 618 rc = selabel_lookup_raw(fc_sehandle, &newcon, "/", in restorecon_sb() 621 rc = selabel_lookup_raw(fc_sehandle, &newcon, lookup_path, in restorecon_sb() 648 rc = filespec_add(sb->st_ino, newcon, pathname); in restorecon_sb() 653 freecon(newcon); in restorecon_sb() 659 freecon(newcon); in restorecon_sb() 666 pathname, newcon); in restorecon_sb() 675 if (curcon == NULL || strcmp(curcon, newcon) != 0) { in restorecon_sb() [all …]
|
D | query_user_context.c | 106 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/ |
D | get_context_list.h | 39 char ** newcon); 46 char ** newcon); 54 char ** newcon); 63 char ** newcon); 70 char ** newcon); 77 char ** newcon);
|
D | selinux.h | 211 char ** newcon); 215 char ** newcon); 220 char ** newcon); 225 char ** newcon); 232 char ** newcon); 236 char ** newcon); 243 char ** newcon); 247 char ** newcon); 265 const char *newcon); 269 const char *newcon);
|
/external/selinux/libsepol/src/ |
D | iface_record.c | 157 sepol_context_t *newcon; in hidden_def() local 159 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def() 165 iface->netif_con = newcon; in hidden_def() 184 sepol_context_t *newcon; in hidden_def() local 185 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def() 191 iface->netmsg_con = newcon; in hidden_def()
|
D | port_record.c | 280 sepol_context_t *newcon; in hidden_def() local 282 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def() 288 port->con = newcon; in hidden_def()
|
D | ibendport_record.c | 283 sepol_context_t *newcon; in hidden_def() local 285 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def() 291 ibendport->con = newcon; in hidden_def()
|
D | ibpkey_record.c | 367 sepol_context_t *newcon; in hidden_def() local 369 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def() 375 ibpkey->con = newcon; in hidden_def()
|
D | node_record.c | 655 sepol_context_t *newcon; in hidden_def() local 657 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def() 663 node->con = newcon; in hidden_def()
|
/external/selinux/libselinux/utils/ |
D | selinuxexeccon.c | 20 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/selinux/libsemanage/src/ |
D | fcontext_record.c | 247 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()
|