summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-05-30 04:08:29 +0000
committereadler <eadler@FreeBSD.org>2012-05-30 04:08:29 +0000
commitdf837d35d67855a1e424a41dd6972b2cf17fa57b (patch)
tree25750fbcb0bbf58b71bcbb3d4e25c864bebbc82f /usr.sbin/lpr
parentcab3b5ae21d231e3adaf1bd7c620c6489537cd8c (diff)
downloadFreeBSD-src-df837d35d67855a1e424a41dd6972b2cf17fa57b.zip
FreeBSD-src-df837d35d67855a1e424a41dd6972b2cf17fa57b.tar.gz
Relax security permissions on '.seq' file creation - the strict,
but odd permissions resulted in a security alert from 110.neggrpperm PR: kern/165533 Submitted by: Anton Shterenlikht <mexas@bristol.ac.uk> Submitted by: J B <jb.1234abcd@gmail.com> Approved by: cperciva MFC after: 1 week
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpr/lpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index c2f88a0..9ae72f6 100644
--- a/usr.sbin/lpr/lpr/lpr.c
+++ b/usr.sbin/lpr/lpr/lpr.c
@@ -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);
}
OpenPOWER on IntegriCloud