summaryrefslogtreecommitdiff
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2006-01-06 00:41:22 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2006-01-06 00:41:22 +0000
commit7a81170a5c2d8b24852ce33d99197bf9d23cc23c (patch)
tree70ffe3cd80be47cd12e77776a07529a32b7e426f /sys/net/pf_ioctl.c
parent4eb8646b3a70821c255a4ce976929d618c69d9e2 (diff)
DIOCNATLOOK was forgotten in the second access control switch. it's a
read-only operation (looking up one state entry), so allow it when /dev/pf is opened read-only (allows squid to work read-only). from Andrey Matveev.
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r--sys/net/pf_ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index 601100c6ce2..01cddc4a740 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.163 2006/01/06 00:37:27 dhartmei Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.164 2006/01/06 00:41:21 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1255,6 +1255,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
case DIOCGETQSTATS:
case DIOCGETRULESETS:
case DIOCGETRULESET:
+ case DIOCNATLOOK:
case DIOCRGETTABLES:
case DIOCRGETTSTATS:
case DIOCRGETADDRS: