diff options
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -210,6 +210,10 @@ pty_setowner(struct passwd *pw, const char *tty) | |||
210 | fatal("stat(%.100s) failed: %.100s", tty, | 210 | fatal("stat(%.100s) failed: %.100s", tty, |
211 | strerror(errno)); | 211 | strerror(errno)); |
212 | 212 | ||
213 | #ifdef WITH_SELINUX | ||
214 | ssh_selinux_setup_pty(pw->pw_name, tty); | ||
215 | #endif | ||
216 | |||
213 | if (st.st_uid != pw->pw_uid || st.st_gid != gid) { | 217 | if (st.st_uid != pw->pw_uid || st.st_gid != gid) { |
214 | if (chown(tty, pw->pw_uid, gid) < 0) { | 218 | if (chown(tty, pw->pw_uid, gid) < 0) { |
215 | if (errno == EROFS && | 219 | if (errno == EROFS && |