diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2000-11-07 09:20:32 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2000-11-07 09:20:32 +0000 |
| commit | 203de3b494a23370b8c89135e0fd081a5282e7c8 (patch) | |
| tree | 60eb7feaaef9b5713b1a7ec71657999e9d244797 /sys/netinet | |
| parent | b986543ddfed02129b0ddcaba072860afad9bf48 (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/ip_fw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index b0ce1c588e14..fbbaa9e3614d 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -1817,11 +1817,11 @@ ip_fw_ctl(struct sockopt *sopt) struct ip_fw frwl, *bp , *buf; /* - * Disallow sets in really-really secure mode, but still allow + * Disallow modifications in really-really secure mode, but still allow * the logging counters to be reset. */ - if (sopt->sopt_dir == SOPT_SET && securelevel >= 3 && - sopt->sopt_name != IP_FW_RESETLOG) + if (securelevel >= 3 && (sopt->sopt_name == IP_FW_ADD || + (sopt->sopt_dir == SOPT_SET && sopt->sopt_name != IP_FW_RESETLOG))) return (EPERM); error = 0; |
