Date: Wed, 6 Jun 2012 06:38:56 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r236663 - stable/9/usr.sbin/lpr/lpr Message-ID: <201206060638.q566cuY0074931@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Wed Jun 6 06:38:56 2012 New Revision: 236663 URL: http://svn.freebsd.org/changeset/base/236663 Log: MFC r236289: Relax security permissions on '.seq' file creation - the strict, but odd permissions resulted in a security alert from 110.neggrpperm PR: bin/165533 Approved by: cperciva (implicit) Modified: stable/9/usr.sbin/lpr/lpr/lpr.c Directory Properties: stable/9/usr.sbin/lpr/ (props changed) Modified: stable/9/usr.sbin/lpr/lpr/lpr.c ============================================================================== --- stable/9/usr.sbin/lpr/lpr/lpr.c Wed Jun 6 06:35:47 2012 (r236662) +++ stable/9/usr.sbin/lpr/lpr/lpr.c Wed Jun 6 06:38:56 2012 (r236663) @@ -846,7 +846,7 @@ mktemps(const struct printer *pp) (void) snprintf(buf, sizeof(buf), "%s/.seq", pp->spool_dir); seteuid(euid); - if ((fd = open(buf, O_RDWR|O_CREAT, 0661)) < 0) { + if ((fd = open(buf, O_RDWR|O_CREAT, 0664)) < 0) { printf("%s: cannot create %s\n", progname, buf); exit(1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206060638.q566cuY0074931>