From owner-svn-src-stable-9@FreeBSD.ORG Wed Jun 6 06:38:56 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C40AD1065675; Wed, 6 Jun 2012 06:38:56 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AEF428FC16; Wed, 6 Jun 2012 06:38:56 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q566cud1074933; Wed, 6 Jun 2012 06:38:56 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q566cuY0074931; Wed, 6 Jun 2012 06:38:56 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201206060638.q566cuY0074931@svn.freebsd.org> From: Eitan Adler Date: Wed, 6 Jun 2012 06:38:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236663 - stable/9/usr.sbin/lpr/lpr X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2012 06:38:56 -0000 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); }