Home
last modified time | relevance | path

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

/external/openssh/openbsd-compat/
Dport-linux.c180 char *oldctx, *newctx, *cx; in ssh_selinux_change_context() local
205 newctx = xmalloc(newlen); in ssh_selinux_change_context()
207 memcpy(newctx, oldctx, len); in ssh_selinux_change_context()
208 strlcpy(newctx + len, newname, newlen - len); in ssh_selinux_change_context()
210 strlcat(newctx, cx, newlen); in ssh_selinux_change_context()
212 oldctx, newctx); in ssh_selinux_change_context()
213 if (setcon(newctx) < 0) in ssh_selinux_change_context()
215 newctx, oldctx, strerror(errno)); in ssh_selinux_change_context()
217 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()