-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS X 10.8 : dyld: DYLD_ environment variables being ignored because main executable is setuid or setgid #23
Comments
Maybe you've found a workaround for this or just disabled stderred, but I finally got around to exploring ways around this. What I've come up with to combat this problem is to make aliases for all the commands that are setuid/setgid which removes the DYLD_INSERT_LIBRARIES environment variable before calling the executable and putting it into my profile. For Thankfully using zsh it was easy to find all the executables in my path which had either of those states using
|
Just realized it may be worth noting that what Apple has done is plug a security hole which allowed programs with superuser privileges to be compromised using the dynamic linker's ability to inject code at runtime through environment variables. There isn't a way around this for stderred since this is exactly the part of the dynamic linker stderred is leveraging. |
Thanks for the clarification, I previoulsy didn't know why the behavior had changed. Also, thanks for sharing those aliases, I was too lazy to figure them all out on my own and had only been using sudo and ps aliases until now :) Also, for what it's worth, I didn't know zsh could search the path in that way. Thanks on all accounts! |
@cehoffman: thanks, this list of env unsets is helpful. |
Could someone leave details and "step by step" instructions for the rest of us on this fix? |
@kimbakat , stick those aliases in your |
.....and precisely...how do I do that? Seriously..I need it. |
In OS X, ever since the Mountain Lion update, there has been a problem with the used of dynamic library variables as discussed in the README.
The error looks like this:
dyld: DYLD_ environment variables being ignored because main executable (/bin/ps) is setuid or setgid
A recent update by apple made this problem go away for
sudo
, but it persists for other programs that are considered setuid or setgid (e.g.ps
). I am not certain if this is a bug for Apple to fix or if we need to proceed with loading these libraries in a new way since Mountain Lion, but I thought I should post it here in case someone had an idea or a work around.The text was updated successfully, but these errors were encountered: