aboutsummaryrefslogtreecommitdiff
path: root/sys/security
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-08-19 06:52:21 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-08-19 06:52:21 +0000
commitfee7d450d8874cf822cdfa62a1e1a7c9c4f7f47b (patch)
tree385a22aeef0039426b0158c0ccad32609b9687a7 /sys/security
parente706181ba66909c58a6192d5600965ff5416dcf3 (diff)
Notes
Diffstat (limited to 'sys/security')
-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);