svn commit: r236664 - stable/8/usr.sbin/lpr/lpr

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


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

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

Modified: stable/8/usr.sbin/lpr/lpr/lpr.c
==============================================================================
--- stable/8/usr.sbin/lpr/lpr/lpr.c	Wed Jun  6 06:38:56 2012	(r236663)
+++ stable/8/usr.sbin/lpr/lpr/lpr.c	Wed Jun  6 06:39:14 2012	(r236664)
@@ -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-all mailing list