diff options
author | jhb <jhb@FreeBSD.org> | 2002-02-27 18:32:23 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-02-27 18:32:23 +0000 |
commit | 3706cd350927f08fa8742cce9448c9ba8e4d6b2c (patch) | |
tree | de74317436bc6bf8211535e1dbda3f6762d05582 /sys/security/lomac/kernel_util.c | |
parent | ec01b5bdbc40025303ba133be03a747c8dc62a2c (diff) | |
download | FreeBSD-src-3706cd350927f08fa8742cce9448c9ba8e4d6b2c.zip FreeBSD-src-3706cd350927f08fa8742cce9448c9ba8e4d6b2c.tar.gz |
Simple p_ucred -> td_ucred changes to start using the per-thread ucred
reference.
Diffstat (limited to 'sys/security/lomac/kernel_util.c')
-rw-r--r-- | sys/security/lomac/kernel_util.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/security/lomac/kernel_util.c b/sys/security/lomac/kernel_util.c index 9a7a0ab..8a57a2b 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_proc->p_ucred->cr_uid) && + ((mp->mnt_stat.f_owner != td->td_ucred->cr_uid) && (error = suser_td(td)))) { vput(vp); return (error); @@ -661,8 +661,7 @@ lomac_do_recwd(struct proc *p) { if (vp->v_type != VDIR) error = ENOTDIR; else - error = VOP_ACCESS(vp, VEXEC, td->td_proc->p_ucred, - curthread); + error = VOP_ACCESS(vp, VEXEC, td->td_ucred, curthread); if (error) vput(vp); else { |