diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2012-05-30 04:08:29 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2012-05-30 04:08:29 +0000 |
commit | 31fd5c11017c616b7af668124d1c0dcacba7e013 (patch) | |
tree | 25750fbcb0bbf58b71bcbb3d4e25c864bebbc82f /usr.sbin/lpr | |
parent | e5d9109aabc163148fe4cf07f9d36aff9b067fb6 (diff) | |
download | src-31fd5c11017c616b7af668124d1c0dcacba7e013.tar.gz src-31fd5c11017c616b7af668124d1c0dcacba7e013.zip |
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
Notes
Notes:
svn path=/head/; revision=236289
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index c2f88a07af6a..9ae72f6110cc 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); } |