[launchd-changes] [23667] branches/PR-5874233/launchd/src/launchd_core_logic.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Aug 18 15:17:12 PDT 2008
Revision: 23667
http://trac.macosforge.org/projects/launchd/changeset/23667
Author: dsorresso at apple.com
Date: 2008-08-18 15:17:12 -0700 (Mon, 18 Aug 2008)
Log Message:
-----------
Now sanitizing LAUNCHD_TRUSTED_FD_ENV before passing it along.
Modified Paths:
--------------
branches/PR-5874233/launchd/src/launchd_core_logic.c
Modified: branches/PR-5874233/launchd/src/launchd_core_logic.c
===================================================================
--- branches/PR-5874233/launchd/src/launchd_core_logic.c 2008-08-18 20:34:34 UTC (rev 23666)
+++ branches/PR-5874233/launchd/src/launchd_core_logic.c 2008-08-18 22:17:12 UTC (rev 23667)
@@ -4176,7 +4176,11 @@
return;
}
- envitem_new(j, key, launch_data_get_string(obj), j->importing_global_env);
+ if( strncmp(LAUNCHD_TRUSTED_FD_ENV, key, sizeof(LAUNCHD_TRUSTED_FD_ENV) - 1) ) {
+ envitem_new(j, key, launch_data_get_string(obj), j->importing_global_env);
+ } else {
+ job_log(j, LOG_WARNING, "Not setting %s for job %s.", key, j->label);
+ }
}
bool
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20080818/5101c30c/attachment.html
More information about the launchd-changes
mailing list