summaryrefslogtreecommitdiff
path: root/sys/fs/sysvbfs
diff options
context:
space:
mode:
authorplunky <plunky@NetBSD.org>2013-03-18 19:35:35 +0000
committerplunky <plunky@NetBSD.org>2013-03-18 19:35:35 +0000
commite5c652ae7a4abd2ebad85482f3b8115d5d2ff12e (patch)
treeef6ed47cc69a2063bd79584a14deeb4b227628cf /sys/fs/sysvbfs
parentf46d5379cf303bfa36adf59b8d8e0a6dd9fefa04 (diff)
C99 section 6.7.2.3 (Tags) Note 3 states that:
A type specifier of the form enum identifier without an enumerator list shall only appear after the type it specifies is complete. which means that we cannot pass an "enum vtype" argument to kauth_access_action() without fully specifying the type first. Unfortunately there is a complicated include file loop which makes that difficult, so convert this minimal function into a macro (and capitalize it). (ok elad@)
Diffstat (limited to 'sys/fs/sysvbfs')
-rw-r--r--sys/fs/sysvbfs/sysvbfs_vnops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/sysvbfs/sysvbfs_vnops.c b/sys/fs/sysvbfs/sysvbfs_vnops.c
index 22c3151c0a2..9f6a866743f 100644
--- a/sys/fs/sysvbfs/sysvbfs_vnops.c
+++ b/sys/fs/sysvbfs/sysvbfs_vnops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sysvbfs_vnops.c,v 1.46 2012/06/11 21:11:41 agc Exp $ */
+/* $NetBSD: sysvbfs_vnops.c,v 1.47 2013/03/18 19:35:40 plunky Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.46 2012/06/11 21:11:41 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.47 2013/03/18 19:35:40 plunky Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -251,7 +251,7 @@ sysvbfs_check_permitted(struct vnode *vp, struct sysvbfs_node *bnode,
{
struct bfs_fileattr *attr = &bnode->inode->attr;
- return kauth_authorize_vnode(cred, kauth_access_action(mode,
+ return kauth_authorize_vnode(cred, KAUTH_ACCESS_ACTION(mode,
vp->v_type, attr->mode), vp, NULL, genfs_can_access(vp->v_type,
attr->mode, attr->uid, attr->gid, mode, cred));
}