summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2011-02-17 11:49:48 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2011-02-17 11:49:48 +0000
commitadde052b0154572ac9d01826d1364397a2fff0e0 (patch)
tree8db22cf5b81db3b4b8372ef21e8c267113393672 /ssh.c
parent9f6de2d748109e4e479c9259468a79973631e7fc (diff)
downloadsrc-test2-adde052b0154572ac9d01826d1364397a2fff0e0.tar.gz
src-test2-adde052b0154572ac9d01826d1364397a2fff0e0.zip
Notes
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ssh.c b/ssh.c
index 9409fa713d73..d32ef78b0d15 100644
--- a/ssh.c
+++ b/ssh.c
@@ -852,15 +852,12 @@ main(int ac, char **av)
strcmp(pw->pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR);
if (r > 0 && (size_t)r < sizeof(buf) && stat(buf, &st) < 0) {
#ifdef WITH_SELINUX
- char *scon;
-
- matchpathcon(buf, 0700, &scon);
- setfscreatecon(scon);
+ ssh_selinux_setfscreatecon(buf);
#endif
if (mkdir(buf, 0700) < 0)
error("Could not create directory '%.200s'.", buf);
#ifdef WITH_SELINUX
- setfscreatecon(NULL);
+ ssh_selinux_setfscreatecon(NULL);
#endif
}
/* load options.identity_files */