Searched refs:oldctx (Results 1 – 1 of 1) sorted by relevance
| /freebsd-13.1/crypto/openssh/openbsd-compat/ |
| H A D | port-linux.c | 181 char *oldctx, *newctx, *cx; in ssh_selinux_change_context() local 187 if (getcon(&oldctx) < 0) { in ssh_selinux_change_context() 191 if ((cx = index(oldctx, ':')) == NULL || (cx = index(cx + 1, ':')) == in ssh_selinux_change_context() 193 logit("%s: unparsable context %s", __func__, oldctx); in ssh_selinux_change_context() 205 newlen = strlen(oldctx) + strlen(newname) + 1; in ssh_selinux_change_context() 207 len = cx - oldctx + 1; in ssh_selinux_change_context() 208 memcpy(newctx, oldctx, len); in ssh_selinux_change_context() 213 oldctx, newctx); in ssh_selinux_change_context() 216 __func__, newctx, oldctx, strerror(errno)); in ssh_selinux_change_context() 217 free(oldctx); in ssh_selinux_change_context()
|