summaryrefslogtreecommitdiffstats
path: root/sys/security/lomac/kernel_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/security/lomac/kernel_util.c')
-rw-r--r--sys/security/lomac/kernel_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/security/lomac/kernel_util.c b/sys/security/lomac/kernel_util.c
index 4a4999d..91e488e 100644
--- a/sys/security/lomac/kernel_util.c
+++ b/sys/security/lomac/kernel_util.c
@@ -400,7 +400,7 @@ unmount(td, uap)
/*
* Must be the root of the filesystem
*/
- if ((vp->v_flag & VROOT) == 0) {
+ if ((vp->v_vflag & VV_ROOT) == 0) {
vput(vp);
return (EINVAL);
}
@@ -542,7 +542,8 @@ lomac_getcwd(
struct dirent *dp;
int direof;
- if (vp->v_flag & VROOT) {
+ ASSERT_VOP_LOCKED(vp, "lomac_getcwd");
+ if (vp->v_vflag & VV_ROOT) {
if (vp->v_mount == NULL) /* forced unmount */
return (EBADF);
dvp = vp->v_mount->mnt_vnodecovered;
OpenPOWER on IntegriCloud