]> andersk Git - openssh.git/blobdiff - sshpty.c
- (djm) [Makefile.in configure.ac session.c sshpty.c]
[openssh.git] / sshpty.c
index a15df041421008d06d0e4ecd9836c418814ad568..0e49e9a1696337b0e1a3f2b96fbc702cfba7d23f 100644 (file)
--- a/sshpty.c
+++ b/sshpty.c
@@ -210,6 +210,10 @@ pty_setowner(struct passwd *pw, const char *tty)
                fatal("stat(%.100s) failed: %.100s", tty,
                    strerror(errno));
 
+#ifdef WITH_SELINUX
+       ssh_selinux_setup_pty(pw->pw_name, tty);
+#endif
+
        if (st.st_uid != pw->pw_uid || st.st_gid != gid) {
                if (chown(tty, pw->pw_uid, gid) < 0) {
                        if (errno == EROFS &&
This page took 0.145543 seconds and 4 git commands to generate.