Date: Mon, 22 Jan 2007 16:06:49 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113347 for review Message-ID: <200701221606.l0MG6nC1027520@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113347 Change 113347 by millert@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701221606.l0MG6nC1027520>