/third_party/selinux/libselinux/src/ |
D | get_context_list.c | 17 char ** newcon) in get_default_context_with_role() argument 46 *newcon = strdup(*ptr); in get_default_context_with_role() 47 if (!(*newcon)) in get_default_context_with_role() 60 char ** newcon) in get_default_context_with_rolelevel() argument 70 newcon); in get_default_context_with_rolelevel() 91 rc = get_default_context_with_role(user, role, newfromcon, newcon); in get_default_context_with_rolelevel() 101 const 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() 301 static int get_failsafe_context(const char *user, char ** newcon) in get_failsafe_context() argument [all …]
|
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() 42 rc = setexeccon(newcon); in setexecfilecon() 51 freecon(newcon); in setexecfilecon()
|
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() 112 char ** newcon) in security_compute_create_raw() argument 115 NULL, newcon); in security_compute_create_raw() 122 char ** newcon) in security_compute_create_name() argument 141 ret = selinux_raw_to_trans_context(rnewcon, newcon); in security_compute_create_name() 151 char ** newcon) in security_compute_create() argument 153 return security_compute_create_name(scon, tcon, tclass, NULL, newcon); in security_compute_create()
|
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() 67 char ** newcon) in security_compute_member() argument 86 if (selinux_raw_to_trans_context(rnewcon, newcon)) { in security_compute_member() 87 *newcon = NULL; in security_compute_member()
|
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() 67 char ** newcon) in security_compute_relabel() argument 86 ret = selinux_raw_to_trans_context(rnewcon, newcon); in security_compute_relabel()
|
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() 64 const char *newcon) in security_validatetrans() argument 79 if (selinux_trans_to_raw_context(newcon, &rnewcon)) { in security_validatetrans()
|
D | selinux_restorecon.c | 560 static int compare_types(char *curcon, char *newcon, char **newtypecon) in compare_types() argument 572 conb = context_new(newcon); in compare_types() 609 char *newcon = NULL; in restorecon_sb() local 636 rc = selabel_lookup_raw(fc_sehandle, &newcon, "/", in restorecon_sb() 639 rc = selabel_lookup_raw(fc_sehandle, &newcon, lookup_path, in restorecon_sb() 666 rc = filespec_add(sb->st_ino, newcon, pathname, flags); in restorecon_sb() 671 freecon(newcon); in restorecon_sb() 677 freecon(newcon); in restorecon_sb() 684 pathname, newcon); in restorecon_sb() 693 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()
|
/third_party/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 | 217 char ** newcon); 221 char ** newcon); 226 char ** newcon); 231 char ** newcon); 238 char ** newcon); 242 char ** newcon); 249 char ** newcon); 253 char ** newcon); 275 const char *newcon); 279 const char *newcon);
|
/third_party/selinux/libsepol/src/ |
D | iface_record.c | 151 sepol_context_t *newcon; in sepol_iface_set_ifcon() local 153 if (sepol_context_clone(handle, con, &newcon) < 0) { in sepol_iface_set_ifcon() 159 iface->netif_con = newcon; in sepol_iface_set_ifcon() 176 sepol_context_t *newcon; in sepol_iface_set_msgcon() local 177 if (sepol_context_clone(handle, con, &newcon) < 0) { in sepol_iface_set_msgcon() 183 iface->netmsg_con = newcon; in sepol_iface_set_msgcon()
|
D | port_record.c | 269 sepol_context_t *newcon; in sepol_port_set_con() local 271 if (sepol_context_clone(handle, con, &newcon) < 0) { in sepol_port_set_con() 277 port->con = newcon; in sepol_port_set_con()
|
D | ibendport_record.c | 274 sepol_context_t *newcon; in sepol_ibendport_set_con() local 276 if (sepol_context_clone(handle, con, &newcon) < 0) { in sepol_ibendport_set_con() 282 ibendport->con = newcon; in sepol_ibendport_set_con()
|
D | ibpkey_record.c | 354 sepol_context_t *newcon; in sepol_ibpkey_set_con() local 356 if (sepol_context_clone(handle, con, &newcon) < 0) { in sepol_ibpkey_set_con() 362 ibpkey->con = newcon; in sepol_ibpkey_set_con()
|
D | node_record.c | 636 sepol_context_t *newcon; in sepol_node_set_con() local 638 if (sepol_context_clone(handle, con, &newcon) < 0) { in sepol_node_set_con() 644 node->con = newcon; in sepol_node_set_con()
|
/third_party/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()
|