From owner-p4-projects@FreeBSD.ORG Wed Feb 15 18:01:04 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B5C0216A423; Wed, 15 Feb 2006 18:01:03 +0000 (GMT) X-Original-To: perforce@freebsd.org 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 7832916A420 for ; Wed, 15 Feb 2006 18:01:03 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4558843D48 for ; Wed, 15 Feb 2006 18:01:03 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1FI13hi032433 for ; Wed, 15 Feb 2006 18:01:03 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1FI12RS032430 for perforce@freebsd.org; Wed, 15 Feb 2006 18:01:02 GMT (envelope-from millert@freebsd.org) Date: Wed, 15 Feb 2006 18:01:02 GMT Message-Id: <200602151801.k1FI12RS032430@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 91813 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 18:01:04 -0000 http://perforce.freebsd.org/chv.cgi?CH=91813 Change 91813 by millert@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;