mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
fd: make rights a mandatory argument to fgetvp_rights
The only caller already always passes rights.
This commit is contained in:
parent
d7832811a7
commit
9af8c8b72b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287540
|
@ -2721,11 +2721,9 @@ fgetvp_rights(struct thread *td, int fd, cap_rights_t *needrightsp,
|
|||
return (EBADF);
|
||||
|
||||
#ifdef CAPABILITIES
|
||||
if (needrightsp != NULL) {
|
||||
error = cap_check(cap_rights(fdp, fd), needrightsp);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
}
|
||||
error = cap_check(cap_rights(fdp, fd), needrightsp);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
#endif
|
||||
|
||||
if (fp->f_vnode == NULL)
|
||||
|
|
Loading…
Reference in a new issue