From 12577aa167c76d517bfe78f603fe805f190d8d05 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Thu, 30 Jul 2015 23:09:15 +0000 Subject: Fix pty permissions Origin: upstream, https://anongit.mindrot.org/openssh.git/commit/?id=6f941396b6835ad18018845f515b0c4fe20be21a Forwarded: not-needed Last-Update: 2015-08-19 Patch-Name: backport-fix-pty-permissions.patch --- sshpty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sshpty.c') diff --git a/sshpty.c b/sshpty.c index 0e32b392b..e89efb74a 100644 --- a/sshpty.c +++ b/sshpty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshpty.c,v 1.29 2014/09/03 18:55:07 djm Exp $ */ +/* $OpenBSD: sshpty.c,v 1.30 2015/07/30 23:09:15 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -197,7 +197,7 @@ pty_setowner(struct passwd *pw, const char *tty, const char *role) /* Determine the group to make the owner of the tty. */ grp = getgrnam("tty"); gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid; - mode = (grp != NULL) ? 0622 : 0600; + mode = (grp != NULL) ? 0620 : 0600; /* * Change owner and mode of the tty as required. -- cgit v1.2.3