mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
pfctl: relax the cfg file secrecy check slightly to allow group readability
default permissions and mtree NOT changed.
prodded by benno, ok phessler benno jmatthew theo pelikan florian
Obtained from: OpenBSD, henning <henning@openbsd.org>, 7140c133f0
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
26a7be91ad
commit
cba525e53b
1 changed files with 2 additions and 2 deletions
|
|
@ -6917,8 +6917,8 @@ check_file_secrecy(int fd, const char *fname)
|
|||
warnx("%s: owner not root or current user", fname);
|
||||
return (-1);
|
||||
}
|
||||
if (st.st_mode & (S_IRWXG | S_IRWXO)) {
|
||||
warnx("%s: group/world readable/writeable", fname);
|
||||
if (st.st_mode & (S_IWGRP | S_IXGRP | S_IRWXO)) {
|
||||
warnx("%s: group writable or world read/writable", fname);
|
||||
return (-1);
|
||||
}
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue