diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2011-02-17 11:49:48 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2011-02-17 11:49:48 +0000 |
commit | adde052b0154572ac9d01826d1364397a2fff0e0 (patch) | |
tree | 8db22cf5b81db3b4b8372ef21e8c267113393672 /ssh.c | |
parent | 9f6de2d748109e4e479c9259468a79973631e7fc (diff) | |
download | src-test2-adde052b0154572ac9d01826d1364397a2fff0e0.tar.gz src-test2-adde052b0154572ac9d01826d1364397a2fff0e0.zip |
Notes
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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 */ |