From owner-p4-projects Sun Jul 21 12:15:24 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5340F37B401; Sun, 21 Jul 2002 12:15:21 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D30E37B400 for ; Sun, 21 Jul 2002 12:15:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF1C743E3B for ; Sun, 21 Jul 2002 12:15:20 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6LJFKJU085317 for ; Sun, 21 Jul 2002 12:15:20 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6LJFKPS085279 for perforce@freebsd.org; Sun, 21 Jul 2002 12:15:20 -0700 (PDT) Date: Sun, 21 Jul 2002 12:15:20 -0700 (PDT) Message-Id: <200207211915.g6LJFKPS085279@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 14620 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14620 Change 14620 by rwatson@rwatson_curry on 2002/07/21 12:15:16 A couple more comments for future authorization checks. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#24 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#24 (text+ko) ==== @@ -740,6 +740,9 @@ *(int *)data = devsw(vp->v_rdev)->d_flags & D_TYPEMASK; return (0); } +#ifdef MAC + /* XXXMAC: Ioctl authorization check here. */ +#endif error = VOP_IOCTL(vp, com, data, fp->f_flag, td->td_ucred, td); if (error == 0 && com == TIOCSCTTY) { @@ -777,6 +780,10 @@ struct thread *td; { +#ifdef MAC + /* XXXMAC: Poll authorization check here. */ +#endif + return (VOP_POLL(((struct vnode *)fp->f_data), events, cred, td)); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message