lpd: Tighten permissions on /var/run/printer
Exclude group read/write permissions as well. Otherwise, group wheel can
submit things w/o the normal accounting. While group wheel is generally
trusted on the machine, submitting jobs w/o checks is not one of the
functions we document for that group.
PR: 17289
Differential Revision: https://reviews.freebsd.org/D47040
(cherry picked from commit 6cde8f3ef7)
This commit is contained in:
parent
476f352b5a
commit
0932ae6b99
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ main(int argc, char **argv)
|
|||
sigaddset(&nmask, SIGTERM);
|
||||
sigprocmask(SIG_BLOCK, &nmask, &omask);
|
||||
|
||||
(void) umask(07);
|
||||
(void) umask(077);
|
||||
signal(SIGHUP, mcleanup);
|
||||
signal(SIGINT, mcleanup);
|
||||
signal(SIGQUIT, mcleanup);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue