Date: Mon, 7 Sep 2015 20:05:57 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287540 - head/sys/kern Message-ID: <201509072005.t87K5vOS045625@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Mon Sep 7 20:05:56 2015 New Revision: 287540 URL: https://svnweb.freebsd.org/changeset/base/287540 Log: fd: make rights a mandatory argument to fgetvp_rights The only caller already always passes rights. Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c ============================================================================== --- head/sys/kern/kern_descrip.c Mon Sep 7 20:02:56 2015 (r287539) +++ head/sys/kern/kern_descrip.c Mon Sep 7 20:05:56 2015 (r287540) @@ -2721,11 +2721,9 @@ fgetvp_rights(struct thread *td, int fd, 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509072005.t87K5vOS045625>