PERFORCE change 91813 for review
Todd Miller
millert at FreeBSD.org
Wed Feb 15 10:01:06 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=91813
Change 91813 by millert at millert_g4tower on 2006/02/15 18:00:53
Simplify args to CHECK_SIMPLE_PERM macro
Affected files ...
.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd.c#31 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd.c#31 (text+ko) ====
@@ -1162,17 +1162,17 @@
struct task_security_struct *tsec, *psec; \
psec = SLOT(port); \
tsec = SLOT(task); \
- return avc_has_perm_ref_audit (tsec->sid, psec->sid, class, \
- perm, NULL, NULL); \
+ return avc_has_perm_ref_audit (tsec->sid, psec->sid, \
+ SECCLASS_ ## class, class ## __ ## perm, NULL, NULL); \
}
-CHECK_SIMPLE_PERM(msg_send,SECCLASS_MACH_PORT,MACH_PORT__SEND);
-CHECK_SIMPLE_PERM(msg_receive,SECCLASS_MACH_PORT,MACH_PORT__RECV);
-CHECK_SIMPLE_PERM(port_make_send,SECCLASS_MACH_PORT,MACH_PORT__MAKE_SEND);
-CHECK_SIMPLE_PERM(port_copy_send,SECCLASS_MACH_PORT,MACH_PORT__COPY_SEND);
-CHECK_SIMPLE_PERM(port_move_recv,SECCLASS_MACH_PORT,MACH_PORT__MOVE_RECV);
-CHECK_SIMPLE_PERM(port_hold_send,SECCLASS_MACH_PORT,MACH_PORT__HOLD_SEND);
-CHECK_SIMPLE_PERM(port_hold_recv,SECCLASS_MACH_PORT,MACH_PORT__HOLD_RECV);
+CHECK_SIMPLE_PERM(msg_send, MACH_PORT, SEND);
+CHECK_SIMPLE_PERM(msg_receive, MACH_PORT, RECV);
+CHECK_SIMPLE_PERM(port_make_send, MACH_PORT, MAKE_SEND);
+CHECK_SIMPLE_PERM(port_copy_send, MACH_PORT, COPY_SEND);
+CHECK_SIMPLE_PERM(port_move_recv, MACH_PORT, MOVE_RECV);
+CHECK_SIMPLE_PERM(port_hold_send, MACH_PORT, HOLD_SEND);
+CHECK_SIMPLE_PERM(port_hold_recv, MACH_PORT, HOLD_RECV);
extern struct policydb policydb;
More information about the trustedbsd-cvs
mailing list