summaryrefslogtreecommitdiff
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/lomac/kernel_util.c b/sys/security/lomac/kernel_util.c
index 91e488e9d52d..42de89947e95 100644
--- a/sys/security/lomac/kernel_util.c
+++ b/sys/security/lomac/kernel_util.c
@@ -383,7 +383,7 @@ unmount(td, uap)
*/
if (!mediate_subject_at_level("unmount", td->td_proc,
LOMAC_HIGHEST_LEVEL) ||
- ((mp->mnt_stat.f_owner != td->td_ucred->cr_uid) &&
+ ((mp->mnt_cred->cr_uid != td->td_ucred->cr_uid) &&
(error = suser(td)))) {
vput(vp);
return (error);