[launchd-changes] [22937] trunk/launchd/src/launchd_core_logic.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 6 17:31:27 PST 2006
Revision: 22937
http://trac.macosforge.org/projects/launchd/changeset/22937
Author: zarzycki at apple.com
Date: 2006-11-06 17:31:26 -0800 (Mon, 06 Nov 2006)
Log Message:
-----------
<rdar://problem/4821335> SecurityAgent crashes in InitializeDragIPC
Modified Paths:
--------------
trunk/launchd/src/launchd_core_logic.c
Modified: trunk/launchd/src/launchd_core_logic.c
===================================================================
--- trunk/launchd/src/launchd_core_logic.c 2006-11-03 21:23:01 UTC (rev 22936)
+++ trunk/launchd/src/launchd_core_logic.c 2006-11-07 01:31:26 UTC (rev 22937)
@@ -3761,7 +3761,12 @@
job_log(j, LOG_DEBUG, "Mach service registration attempt: %s", servicename);
- if (j->anonymous && job_get_bs(j)->parent == NULL && ldc.uid != 0 && ldc.uid != getuid()) {
+ /*
+ * From a per-user/session launchd's perspective, SecurityAgent (UID
+ * 92) is a rogue application (not our UID, not root and not a child of
+ * us). We'll have to reconcile this design friction at a later date.
+ */
+ if (j->anonymous && job_get_bs(j)->parent == NULL && ldc.uid != 0 && ldc.uid != getuid() && ldc.uid != 92) {
if (getpid() == 1) {
return VPROC_ERR_TRY_PER_USER;
} else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20061106/e22dbdd1/attachment.html
More information about the launchd-changes
mailing list