diff options
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -162,7 +162,7 @@ pty_change_window_size(int ptyfd, u_int row, u_int col, | |||
162 | } | 162 | } |
163 | 163 | ||
164 | void | 164 | void |
165 | pty_setowner(struct passwd *pw, const char *tty) | 165 | pty_setowner(struct passwd *pw, const char *tty, const char *role) |
166 | { | 166 | { |
167 | struct group *grp; | 167 | struct group *grp; |
168 | gid_t gid; | 168 | gid_t gid; |
@@ -186,7 +186,7 @@ pty_setowner(struct passwd *pw, const char *tty) | |||
186 | strerror(errno)); | 186 | strerror(errno)); |
187 | 187 | ||
188 | #ifdef WITH_SELINUX | 188 | #ifdef WITH_SELINUX |
189 | ssh_selinux_setup_pty(pw->pw_name, tty); | 189 | ssh_selinux_setup_pty(pw->pw_name, tty, role); |
190 | #endif | 190 | #endif |
191 | 191 | ||
192 | if (st.st_uid != pw->pw_uid || st.st_gid != gid) { | 192 | if (st.st_uid != pw->pw_uid || st.st_gid != gid) { |