aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/pf/net/pf_ioctl.c
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2004-08-22 15:23:48 +0000
committerMax Laier <mlaier@FreeBSD.org>2004-08-22 15:23:48 +0000
commit7fff37fc1520a98672a04ab4ef0a1a4204126d15 (patch)
treead826bdf91ce0fe63c5334aa4c7a3c1e0423c690 /sys/contrib/pf/net/pf_ioctl.c
parentcd6eccf9b8a9ba6d2d19aaf87ed13b4894f59275 (diff)
downloadsrc-7fff37fc1520a98672a04ab4ef0a1a4204126d15.tar.gz
src-7fff37fc1520a98672a04ab4ef0a1a4204126d15.zip
Notes
Diffstat (limited to 'sys/contrib/pf/net/pf_ioctl.c')
-rw-r--r--sys/contrib/pf/net/pf_ioctl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c
index 4df9e375ac9f..a1172c7c211e 100644
--- a/sys/contrib/pf/net/pf_ioctl.c
+++ b/sys/contrib/pf/net/pf_ioctl.c
@@ -66,6 +66,7 @@
#ifdef __FreeBSD__
#include <sys/module.h>
#include <sys/conf.h>
+#include <sys/proc.h>
#else
#include <sys/timeout.h>
#include <sys/pool.h>
@@ -979,7 +980,11 @@ pfioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
int error = 0;
/* XXX keep in sync with switch() below */
+#ifdef __FreeBSD__
+ if (securelevel_gt(td->td_ucred, 1))
+#else
if (securelevel > 1)
+#endif
switch (cmd) {
case DIOCGETRULES:
case DIOCGETRULE: