Date: Mon, 4 Dec 2006 17:54:22 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 111031 for review Message-ID: <200612041754.kB4HsMdD081070@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612041754.kB4HsMdD081070>