PERFORCE change 111031 for review
Todd Miller
millert at FreeBSD.org
Mon Dec 4 09:54:46 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=111031
Change 111031 by millert at 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
More information about the trustedbsd-cvs
mailing list