Hi Rashmi, Please see my response to you from earlier. This is expected behavior, and there is information in syslog as to why it was denied. You are disallowed from modifying DYLD_ environment variables in launchd when SIP is enabled.
> On Aug 3, 2015, at 01:40, Rashmi Vyshnavi > <[email protected]> wrote: > > Hi, > > The launchctl works fine with some dummy environment variable it works but > not for DYLD_LIBRARY_PATH. > e.g. $ launchctl setenv DUMMY_PATH /Applications/dummy_path > $ launchctl getenv DUMMY_PATH > /Applications/dummy_path > $ launchctl setenv DYLD_LIBRARY_PATH /Path/to/my/dynamic/libraries > $ launchctl getenv DYLD_LIBRARY_PATH > <No output> > > Rashmi > > > > > RASHMI VYSHNAVI > Senior Engineer - Product Development > > HARMAN Connected Services > Tel. +918033074845 | Mobile +918033074845 | > https://twitter.com/symphony_teleca > Plot No.3 & 3A, EOIZ Industrial Area, Sadaramangala, Bangalore - 560066 > > Please consider the environment before you print. > > Notice to recipient: This e-mail (including any attachments) is meant for the > intended recipient only, may contain confidential and proprietary > information, and is protected by law. If you received this e-mail in error, > please immediately notify the sender of the error by return e-mail, delete > this communication and any attachments, and shred any printouts. Unauthorized > review, use, dissemination, distribution, copying or taking of any action > based on this communication is strictly prohibited. > > -----Original Message----- > From: Jeremy Huddleston Sequoia [mailto:[email protected]] > Sent: Monday, August 03, 2015 1:22 PM > To: Rashmi Vyshnavi > Cc: [email protected] > Subject: Re: Unable to setenv DYLD_LIBRARY_PATH using launchctl command on El > Captian. > > > >> On Aug 2, 2015, at 23:18, Rashmi Vyshnavi >> <[email protected]> wrote: >> >> >> Hi All, >> >> I am unable to set environment variable DYLD_LIBRARY_PATH using >> launchctl command on El Captian. The below are the commands $ >> launchctl setenv DYLD_LIBRARY_PATH /Path/to/my/dynamic/libraries > > This is expected to fail. You should be seeing logging to syslog like: > "caller attempted an operation forbidden by System Integrity Protection: ..." > > However, it would be good if launchctl didn't give the impression of success. > > >> $ launchctl getenv DYLD_LIBRARY_PATH >> >> The getenv does not print the path, it returns empty. >> >> >> Thanks, >> Rashmi >> >> >> RASHMI VYSHNAVI >> Senior Engineer - Product Development >> >> HARMAN Connected Services >> Tel. +918033074845 | Mobile +918033074845 | Twitter Plot No.3 & 3A, >> EOIZ Industrial Area, Sadaramangala, Bangalore - 560066 >> >> <46b5c2.png> >> >> Please consider the environment before you print. >> >> Notice to recipient: This e-mail (including any attachments) is meant for >> the intended recipient only, may contain confidential and proprietary >> information, and is protected by law. If you received this e-mail in error, >> please immediately notify the sender of the error by return e-mail, delete >> this communication and any attachments, and shred any printouts. >> Unauthorized review, use, dissemination, distribution, copying or taking of >> any action based on this communication is strictly prohibited. >> >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Unix-porting mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/unix-porting/jeremyhu%40apple. >> com >> >> This email sent to [email protected] > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Unix-porting mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/unix-porting/jeremyhu%40apple.com > > This email sent to [email protected]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/unix-porting/archive%40mail-archive.com This email sent to [email protected]
