From owner-p4-projects@FreeBSD.ORG Mon Dec 4 17:54:27 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 4FFBC16A417; Mon, 4 Dec 2006 17:54:27 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 295D516A403 for ; Mon, 4 Dec 2006 17:54:27 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD1F643CBA for ; Mon, 4 Dec 2006 17:53:48 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kB4HsMpN081076 for ; Mon, 4 Dec 2006 17:54:22 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kB4HsMdD081070 for perforce@freebsd.org; Mon, 4 Dec 2006 17:54:22 GMT (envelope-from millert@freebsd.org) Date: Mon, 4 Dec 2006 17:54:22 GMT Message-Id: <200612041754.kB4HsMdD081070@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 111031 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: Mon, 04 Dec 2006 17:54:27 -0000 http://perforce.freebsd.org/chv.cgi?CH=111031 Change 111031 by millert@millert_g5tower on 2006/12/04 17:54:01 Restore mac_is_present() routine, create a new command to use it. Affected files ... .. //depot/projects/trustedbsd/sedarwin8/darwin/libmac/mac.c#3 edit .. //depot/projects/trustedbsd/sedarwin8/darwin/mac_cmds/Makefile#2 edit .. //depot/projects/trustedbsd/sedarwin8/darwin/mac_cmds/chkmac/Makefile#1 add .. //depot/projects/trustedbsd/sedarwin8/darwin/mac_cmds/chkmac/chkmac.8#1 add .. //depot/projects/trustedbsd/sedarwin8/darwin/mac_cmds/chkmac/chkmac.c#1 add Differences ... ==== //depot/projects/trustedbsd/sedarwin8/darwin/libmac/mac.c#3 (text+ko) ==== @@ -471,13 +471,11 @@ strcat(mibname, policyname); strcat(mibname, ".enabled"); siz = 5; - /*error = sysctlnametomib(mibname, mib, &siz);*/ - error = 0; + error = sysctlnametomib(mibname, mib, &siz); free(mibname); } else { siz = 3; - error = 0; - /*error = sysctlnametomib("security.mac", mib, &siz);*/ + error = sysctlnametomib("security.mac", mib, &siz); } if (error == -1) { switch (errno) { ==== //depot/projects/trustedbsd/sedarwin8/darwin/mac_cmds/Makefile#2 (text+ko) ==== @@ -1,3 +1,3 @@ -SUBDIR= getfmac getlcmac getpmac lcs mexec setfsmac setlcmac setpmac +SUBDIR= getfmac getlcmac getpmac lcs mexec setfsmac setlcmac setpmac chkmac include ../../policies/mk/subdir.mk