Date: Tue, 7 Mar 2006 17:05:31 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 92925 for review Message-ID: <200603071705.k27H5V54014691@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92925 Change 92925 by millert@millert_ibook on 2006/03/07 17:05:30 Check for null space in mach_get_task_label_text() too. Affected files ... .. //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/osfmk/kern/security.c#8 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/osfmk/kern/security.c#8 (text+ko) ==== @@ -58,15 +58,15 @@ return (KERN_SUCCESS); } + kern_return_t - mach_get_task_label_text( ipc_space_t space, labelstr_t policies, labelstr_t outl) { - if (space == IS_NULL) + if (space == IS_NULL || space->is_task == NULL) return KERN_INVALID_TASK; tasklabel_lock(space->is_task);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603071705.k27H5V54014691>