Home
last modified time | relevance | path

Searched refs:newcon (Results 1 - 16 of 16) sorted by relevance

/third_party/selinux/libselinux/src/
H A Dget_context_list.c17 char ** newcon) in get_default_context_with_role()
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()
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()
110 *newcon = strdup(conary[0]); in get_default_context()
112 if (!(*newcon)) in get_default_context()
302 static int get_failsafe_context(const char *user, char ** newcon) in get_failsafe_context() argument
14 get_default_context_with_role(const char *user, const char *role, const char *fromcon, char ** newcon) get_default_context_with_role() argument
56 get_default_context_with_rolelevel(const char *user, const char *role, const char *level, const char *fromcon, char ** newcon) get_default_context_with_rolelevel() argument
100 get_default_context(const char *user, const char *fromcon, char ** newcon) get_default_context() argument
388 get_default_context_with_level(const char *user, const char *level, const char *fromcon, char ** newcon) get_default_context_with_level() argument
[all...]
H A Dsetexecfilecon.c9 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()
H A Dcompute_create.c55 char ** newcon) in security_compute_create_name_raw()
103 *newcon = strdup(buf); in security_compute_create_name_raw()
104 if (!(*newcon)) { in security_compute_create_name_raw()
119 char ** newcon) in security_compute_create_raw()
122 NULL, newcon); in security_compute_create_raw()
129 char ** newcon) in security_compute_create_name()
148 ret = selinux_raw_to_trans_context(rnewcon, newcon); in security_compute_create_name()
158 char ** newcon) in security_compute_create()
160 return security_compute_create_name(scon, tcon, tclass, NULL, newcon); in security_compute_create()
51 security_compute_create_name_raw(const char * scon, const char * tcon, security_class_t tclass, const char *objname, char ** newcon) security_compute_create_name_raw() argument
116 security_compute_create_raw(const char * scon, const char * tcon, security_class_t tclass, char ** newcon) security_compute_create_raw() argument
125 security_compute_create_name(const char * scon, const char * tcon, security_class_t tclass, const char *objname, char ** newcon) security_compute_create_name() argument
155 security_compute_create(const char * scon, const char * tcon, security_class_t tclass, char ** newcon) security_compute_create() argument
H A Dcompute_member.c16 char ** newcon) in security_compute_member_raw()
56 *newcon = strdup(buf); in security_compute_member_raw()
57 if (!(*newcon)) { in security_compute_member_raw()
73 char ** newcon) in security_compute_member()
92 if (selinux_raw_to_trans_context(rnewcon, newcon)) { in security_compute_member()
93 *newcon = NULL; in security_compute_member()
13 security_compute_member_raw(const char * scon, const char * tcon, security_class_t tclass, char ** newcon) security_compute_member_raw() argument
70 security_compute_member(const char * scon, const char * tcon, security_class_t tclass, char ** newcon) security_compute_member() argument
H A Dcompute_relabel.c16 char ** newcon) in security_compute_relabel_raw()
56 *newcon = strdup(buf); in security_compute_relabel_raw()
57 if (!*newcon) { in security_compute_relabel_raw()
73 char ** newcon) in security_compute_relabel()
92 ret = selinux_raw_to_trans_context(rnewcon, newcon); in security_compute_relabel()
13 security_compute_relabel_raw(const char * scon, const char * tcon, security_class_t tclass, char ** newcon) security_compute_relabel_raw() argument
70 security_compute_relabel(const char * scon, const char * tcon, security_class_t tclass, char ** newcon) security_compute_relabel() argument
H A Dvalidatetrans.c16 const char *newcon) in security_validatetrans_raw()
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()
79 if (selinux_trans_to_raw_context(newcon, &rnewcon)) { in security_validatetrans()
13 security_validatetrans_raw(const char *scon, const char *tcon, security_class_t tclass, const char *newcon) security_validatetrans_raw() argument
61 security_validatetrans(const char *scon, const char *tcon, security_class_t tclass, const char *newcon) security_validatetrans() argument
H A Dselinux_restorecon.c591 static int compare_types(const char *curcon, const char *newcon, char **newtypecon) in compare_types() argument
603 conb = context_new(newcon); in compare_types()
672 char *newcon = NULL; in restorecon_sb() local
694 rc = selabel_lookup_raw(fc_sehandle, &newcon, "/", in restorecon_sb()
697 rc = selabel_lookup_raw(fc_sehandle, &newcon, lookup_path, in restorecon_sb()
730 rc = filespec_add(sb->st_ino, newcon, pathname, flags); in restorecon_sb()
735 freecon(newcon); in restorecon_sb()
741 freecon(newcon); in restorecon_sb()
748 pathname, newcon); in restorecon_sb()
757 if (curcon == NULL || strcmp(curcon, newcon) ! in restorecon_sb()
[all...]
H A Dquery_user_context.c106 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/
H A Dget_context_list.h31 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);
H A Dselinux.h217 /* Compute a labeling decision and set *newcon to refer to it.
222 char ** newcon);
226 char ** newcon);
231 char ** newcon);
236 char ** newcon);
238 /* Compute a relabeling decision and set *newcon to refer to it.
243 char ** newcon);
247 char ** newcon);
249 /* Compute a polyinstantiation member decision and set *newcon to refer to it.
254 char ** newcon);
[all...]
/third_party/selinux/libsepol/src/
H A Diface_record.c151 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()
H A Dport_record.c269 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()
H A Dibpkey_record.c354 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()
H A Dibendport_record.c274 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()
H A Dnode_record.c636 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/
H A Dselinuxexeccon.c20 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()

Completed in 6 milliseconds