Revision
23637
Author
zarzycki@apple.com
Date
2008-05-28 10:21:25 -0700 (Wed, 28 May 2008)

Log Message

<rdar://problem/5966453> sandbox_init: Could not set default launchd policy, err=1100

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_core_logic.c (23636 => 23637)


--- trunk/launchd/src/launchd_core_logic.c	2008-05-22 16:10:43 UTC (rev 23636)
+++ trunk/launchd/src/launchd_core_logic.c	2008-05-28 17:21:25 UTC (rev 23637)
@@ -7046,7 +7046,7 @@
 		return BOOTSTRAP_NO_MEMORY;
 	}
 
-	if (unlikely(ldc->euid || ldc->uid)) {
+	if (ldc->euid && (ldc->euid != getuid())) {
 		return BOOTSTRAP_NOT_PRIVILEGED;
 	}