summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_alq.c6
-rw-r--r--sys/kern/kern_ktr.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_alq.c b/sys/kern/kern_alq.c
index c7b7125..3617afe 100644
--- a/sys/kern/kern_alq.c
+++ b/sys/kern/kern_alq.c
@@ -334,8 +334,8 @@ SYSINIT(ald, SI_SUB_LOCK, SI_ORDER_ANY, ald_startup, NULL)
* Create the queue data structure, allocate the buffer, and open the file.
*/
int
-alq_open(struct alq **alqp, const char *file, struct ucred *cred, int size,
- int count)
+alq_open(struct alq **alqp, const char *file, struct ucred *cred, int cmode,
+ int size, int count)
{
struct thread *td;
struct nameidata nd;
@@ -353,7 +353,7 @@ alq_open(struct alq **alqp, const char *file, struct ucred *cred, int size,
NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_SYSSPACE, file, td);
flags = FWRITE | O_NOFOLLOW | O_CREAT;
- error = vn_open_cred(&nd, &flags, 0, cred, -1);
+ error = vn_open_cred(&nd, &flags, cmode, cred, -1);
if (error)
return (error);
diff --git a/sys/kern/kern_ktr.c b/sys/kern/kern_ktr.c
index bd25e36..e23d972 100644
--- a/sys/kern/kern_ktr.c
+++ b/sys/kern/kern_ktr.c
@@ -145,8 +145,8 @@ sysctl_debug_ktr_alq_enable(SYSCTL_HANDLER_ARGS)
if (error)
return (error);
error = alq_open(&ktr_alq, (const char *)ktr_alq_file,
- req->td->td_ucred, sizeof(struct ktr_entry),
- ktr_alq_depth);
+ req->td->td_ucred, ALQ_DEFAULT_CMODE,
+ sizeof(struct ktr_entry), ktr_alq_depth);
if (error == 0) {
ktr_mask &= ~KTR_ALQ_MASK;
ktr_alq_cnt = 0;
OpenPOWER on IntegriCloud