Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2002 12:15:20 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 14620 for review
Message-ID:  <200207211915.g6LJFKPS085279@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207211915.g6LJFKPS085279>