summaryrefslogtreecommitdiff
path: root/usr.sbin/hostapd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2014-01-22 00:21:18 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2014-01-22 00:21:18 +0000
commit446a42e5f7ee4fa1cf899b4250aa68b5e39ce002 (patch)
treef1d1d7294c34aa1208f8253af417724454c3050a /usr.sbin/hostapd
parent17a9845a120b50421e5f393c539c2623e9e5818e (diff)
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
Diffstat (limited to 'usr.sbin/hostapd')
-rw-r--r--usr.sbin/hostapd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/hostapd/parse.y b/usr.sbin/hostapd/parse.y
index 8be163219e6..4914b7b45cd 100644
--- a/usr.sbin/hostapd/parse.y
+++ b/usr.sbin/hostapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.44 2013/11/25 12:55:01 benno Exp $ */
+/* $OpenBSD: parse.y,v 1.45 2014/01/22 00:21:16 henning Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@@ -1678,8 +1678,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);