diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2000-11-30 21:06:05 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2000-11-30 21:06:05 +0000 |
commit | cf64863a1e5e3242698536e2a8fb7abcc99c463a (patch) | |
tree | b7dbdc6383cbd9f3e56666f5ec71f184f710d812 /sys/kern/kern_exec.c | |
parent | 5b91eb6c7850266a36d39ddf0038ce0be891cc0d (diff) | |
download | src-cf64863a1e5e3242698536e2a8fb7abcc99c463a.tar.gz src-cf64863a1e5e3242698536e2a8fb7abcc99c463a.zip |
o Add a comment to exec_check_permissions() to indicate that the
passed vnode must be locked; this is the case because of calls
to VOP_GETATTR(), VOP_ACCESS(), and VOP_OPEN(). This becomes
more of an issue when VOP_ACCESS() gets a bit more complicated,
which it does when you introduce ACL, Capability, and MAC
support.
Obtained from: TrustedBSD Project
Notes
Notes:
svn path=/head/; revision=69411
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 4f74760801c9..6c0ef1550c5d 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -708,6 +708,7 @@ exec_copyout_strings(imgp) /* * Check permissions of file to execute. + * Called with imgp->vp locked. * Return 0 for success or error code on failure. */ int |