Home
last modified time | relevance | path

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

/external/openssh/openbsd-compat/
Dport-linux.c180 char *oldctx, *newctx, *cx; in ssh_selinux_change_context() local
186 if (getcon((security_context_t *)&oldctx) < 0) { in ssh_selinux_change_context()
190 if ((cx = index(oldctx, ':')) == NULL || (cx = index(cx + 1, ':')) == in ssh_selinux_change_context()
192 logit ("%s: unparseable context %s", __func__, oldctx); in ssh_selinux_change_context()
204 newlen = strlen(oldctx) + strlen(newname) + 1; in ssh_selinux_change_context()
206 len = cx - oldctx + 1; in ssh_selinux_change_context()
207 memcpy(newctx, oldctx, len); in ssh_selinux_change_context()
212 oldctx, newctx); in ssh_selinux_change_context()
215 newctx, oldctx, strerror(errno)); in ssh_selinux_change_context()
216 free(oldctx); in ssh_selinux_change_context()