Home
last modified time | relevance | path

Searched refs:newctx (Results 1 – 3 of 3) sorted by relevance

/external/openssh/openbsd-compat/
Dport-linux.c182 char *oldctx, *newctx, *cx; in ssh_selinux_change_context() local
207 newctx = xmalloc(newlen); in ssh_selinux_change_context()
209 memcpy(newctx, oldctx, len); in ssh_selinux_change_context()
210 strlcpy(newctx + len, newname, newlen - len); in ssh_selinux_change_context()
212 strlcat(newctx, cx, newlen); in ssh_selinux_change_context()
214 oldctx, newctx); in ssh_selinux_change_context()
215 if (setcon(newctx) < 0) in ssh_selinux_change_context()
217 newctx, oldctx, strerror(errno)); in ssh_selinux_change_context()
219 free(newctx); in ssh_selinux_change_context()
/external/selinux/libselinux/src/
Davc_sidtab.c53 char * newctx; in sidtab_insert() local
60 newctx = (char *) strdup(ctx); in sidtab_insert()
61 if (!newctx) { in sidtab_insert()
67 hvalue = sidtab_hash(newctx); in sidtab_insert()
69 newnode->sid_s.ctx = newctx; in sidtab_insert()
/external/libselinux/src/
Davc_sidtab.c53 char * newctx; in sidtab_insert() local
60 newctx = (char *) strdup(ctx); in sidtab_insert()
61 if (!newctx) { in sidtab_insert()
67 hvalue = sidtab_hash(newctx); in sidtab_insert()
69 newnode->sid_s.ctx = newctx; in sidtab_insert()