summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-03-19 15:39:03 +0000
committerrwatson <rwatson@FreeBSD.org>2006-03-19 15:39:03 +0000
commitbae874c2cb2c5d820874f925931eebd8952bf5b9 (patch)
tree84dbb765cf9af1a1e3250f5aa711c8f3300ad282 /sys/security
parent2b1a7974d7d064be13e713129efb328227505d93 (diff)
downloadFreeBSD-src-bae874c2cb2c5d820874f925931eebd8952bf5b9.zip
FreeBSD-src-bae874c2cb2c5d820874f925931eebd8952bf5b9.tar.gz
Merge Perforce change 93570 from TrustedBSD audit3 branch:
Add audit pipe ioctls to query minimum and maximum audit queue lengths. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_pipe.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/security/audit/audit_pipe.c b/sys/security/audit/audit_pipe.c
index 50d026c..501254b 100644
--- a/sys/security/audit/audit_pipe.c
+++ b/sys/security/audit/audit_pipe.c
@@ -457,6 +457,16 @@ audit_pipe_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
error = EINVAL;
break;
+ case AUDITPIPE_GET_QLIMIT_MIN:
+ *(u_int *)data = AUDIT_PIPE_QLIMIT_MIN;
+ error = 0;
+ break;
+
+ case AUDITPIPE_GET_QLIMIT_MAX:
+ *(u_int *)data = AUDIT_PIPE_QLIMIT_MAX;
+ error = 0;
+ break;
+
case AUDITPIPE_GET_INSERTS:
*(u_int *)data = ap->ap_inserts;
error = 0;
OpenPOWER on IntegriCloud