DYLD_ env vars ignored warning shown without DYLD_PRINT_WARN
Posted: 2012-08-07T20:39:30-07:00
environment: Mac OS X 10.8
Summary:
A change introduced in OS X 10.8 causes a warning to be emitted on the console every time a setuid or setgid program is run when a DYLD_ environment variable has been set. There appears to be no way to disable this warning, even though the behavior (ignoring DYLD_ variables) was not introduced in 10.8.
Steps to Reproduce:
1. Set DYLD_LIBRARY_PATH=/foo
2. Run any setuid or setgid program. For example, 'ps'.
Expected Results:
The normal output of 'ps' (or whatever was run), without extra stuff output to stderr.
Actual Results:
dyld: DYLD_ environment variables being ignored because main executable (/bin/ps) is setuid or setgid
(normal 'ps' output)
more detail, please check: http://openradar.appspot.com/11894054
Summary:
A change introduced in OS X 10.8 causes a warning to be emitted on the console every time a setuid or setgid program is run when a DYLD_ environment variable has been set. There appears to be no way to disable this warning, even though the behavior (ignoring DYLD_ variables) was not introduced in 10.8.
Steps to Reproduce:
1. Set DYLD_LIBRARY_PATH=/foo
2. Run any setuid or setgid program. For example, 'ps'.
Expected Results:
The normal output of 'ps' (or whatever was run), without extra stuff output to stderr.
Actual Results:
dyld: DYLD_ environment variables being ignored because main executable (/bin/ps) is setuid or setgid
(normal 'ps' output)
more detail, please check: http://openradar.appspot.com/11894054