Searched refs:oldctx (Results 1 – 1 of 1) sorted by relevance
/external/openssh/openbsd-compat/ |
D | port-linux.c | 183 char *oldctx, *newctx, *cx; in ssh_selinux_change_context() local 189 if (getcon((security_context_t *)&oldctx) < 0) { in ssh_selinux_change_context() 193 if ((cx = index(oldctx, ':')) == NULL || (cx = index(cx + 1, ':')) == in ssh_selinux_change_context() 195 logit ("%s: unparseable context %s", __func__, oldctx); in ssh_selinux_change_context() 207 newlen = strlen(oldctx) + strlen(newname) + 1; in ssh_selinux_change_context() 209 len = cx - oldctx + 1; in ssh_selinux_change_context() 210 memcpy(newctx, oldctx, len); in ssh_selinux_change_context() 215 oldctx, newctx); in ssh_selinux_change_context() 218 newctx, oldctx, strerror(errno)); in ssh_selinux_change_context() 219 xfree(oldctx); in ssh_selinux_change_context()
|