[openssh-commits] [openssh] 01/01: missing ifdef SELINUX; spotted by dtucker
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jun 26 15:30:12 AEST 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 32b2502a9dfdfded1ccdc1fd6dc2b3fe41bfc205
Author: Damien Miller <djm at mindrot.org>
Date: Fri Jun 26 15:30:06 2020 +1000
missing ifdef SELINUX; spotted by dtucker
---
hostfile.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hostfile.c b/hostfile.c
index 4b39def0..1cc4dba9 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -471,13 +471,17 @@ hostfile_create_user_ssh_dir(const char *filename, int notify)
else if (errno != ENOENT)
error("Could not stat %s: %s", dotsshdir, strerror(errno));
else {
+#ifdef WITH_SELINUX
ssh_selinux_setfscreatecon(dotsshdir);
+#endif
if (mkdir(dotsshdir, 0700) == -1)
error("Could not create directory '%.200s' (%s).",
dotsshdir, strerror(errno));
else if (notify)
logit("Created directory '%s'.", dotsshdir);
+#ifdef WITH_SELINUX
ssh_selinux_setfscreatecon(NULL);
+#endif
}
free(dotsshdir);
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list