svn commit: r236665 - stable/7/usr.sbin/lpr/lpr

Eitan Adler eadler at FreeBSD.org
Wed Jun 6 06:39:35 UTC 2012


Author: eadler
Date: Wed Jun  6 06:39:34 2012
New Revision: 236665
URL: http://svn.freebsd.org/changeset/base/236665

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/7/usr.sbin/lpr/lpr/lpr.c
Directory Properties:
  stable/7/usr.sbin/lpr/   (props changed)

Modified: stable/7/usr.sbin/lpr/lpr/lpr.c
==============================================================================
--- stable/7/usr.sbin/lpr/lpr/lpr.c	Wed Jun  6 06:39:14 2012	(r236664)
+++ stable/7/usr.sbin/lpr/lpr/lpr.c	Wed Jun  6 06:39:34 2012	(r236665)
@@ -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);
 	}


More information about the svn-src-stable mailing list