PERFORCE change 113347 for review
Todd Miller
millert at FreeBSD.org
Mon Jan 22 16:06:55 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=113347
Change 113347 by millert at millert_macbook on 2007/01/22 16:06:13
Add missing mac_framework include.
Affected files ...
.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/netinet/ip_input.c#6 edit
.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/kern/task.c#9 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/netinet/ip_input.c#6 (text+ko) ====
@@ -111,6 +111,10 @@
#include <netinet/udp_var.h>
#include <netinet/bootp.h>
+#ifdef MAC
+#include <security/mac_framework.h>
+#endif
+
#include <sys/kdebug.h>
#define DBG_LAYER_BEG NETDBG_CODE(DBG_NETIP, 0)
==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/kern/task.c#9 (text+ko) ====
@@ -1711,7 +1711,7 @@
if (thread->label == oldlabel)
lh_release(oldlabel);
}
- task->label = labelh_modify(task->label, 0);
+ task->label = labelh_modify(task->label, 1);
mac_task_label_update(pl, &task->maclabel);
/*
* Replace the old label in the task's threads with the new one.
@@ -1752,7 +1752,7 @@
if (thread->label == oldlabel)
lh_release(oldlabel);
}
- task->label = labelh_modify(task->label, 0);
+ task->label = labelh_modify(task->label, 1);
(*f)(&task->maclabel, arg);
/*
* Replace the old label in the task's threads with the new one.
More information about the trustedbsd-cvs
mailing list