summaryrefslogtreecommitdiffstats
path: root/sys/sys/alq.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-06-22 22:28:56 +0000
committerrwatson <rwatson@FreeBSD.org>2003-06-22 22:28:56 +0000
commitbf6f6091a42014bc9d3a94ad39db39be05f0ac95 (patch)
treebc4b3b8a3ea1113c0b04660bb9d668ef73c73e57 /sys/sys/alq.h
parent4e21fcc762aac198eecaa42ece0d974d33185911 (diff)
downloadFreeBSD-src-bf6f6091a42014bc9d3a94ad39db39be05f0ac95.zip
FreeBSD-src-bf6f6091a42014bc9d3a94ad39db39be05f0ac95.tar.gz
Add an explicit credential argument to alq_open() to allow the caller to
specify what credential to use when authorizing vn_open() and later write operations, rather than curthread->td_ucred. When writing KTR traces to an ALQ, specify the credential of the thread generating the sysctl request. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/sys/alq.h')
-rw-r--r--sys/sys/alq.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/alq.h b/sys/sys/alq.h
index 1d9d752..98c414d 100644
--- a/sys/sys/alq.h
+++ b/sys/sys/alq.h
@@ -65,7 +65,9 @@ struct ale {
* Returns:
* error from open or 0 on success
*/
-int alq_open(struct alq **, const char *file, int size, int count);
+struct ucred;
+int alq_open(struct alq **, const char *file, struct ucred *cred, int size,
+ int count);
/*
* alq_write: Write data into the queue
OpenPOWER on IntegriCloud