diff options
| author | Max Laier <mlaier@FreeBSD.org> | 2004-08-29 11:51:07 +0000 |
|---|---|---|
| committer | Max Laier <mlaier@FreeBSD.org> | 2004-08-29 11:51:07 +0000 |
| commit | e2ab11b1af2f0f65ebb0f290be8c576ef72efbfb (patch) | |
| tree | 49f1b65e5ce276fb01351764b9aae2b22685a85a /sys | |
| parent | 7f6cdd5d497920f45cc4acb7bab0208fd96d5499 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/contrib/pf/net/pf_ioctl.c | 5 |
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: |
