4 ms·
Would it make sense for the kernel to use a fresh, empty environment when executing a setuid binary? Or perhaps a fresh environment with a few of the most impo
by twic 11y ago
Would it make sense for the kernel to use a fresh, empty environment when executing a setuid binary?
Or perhaps a fresh environment with a few of the most important variables sanitised and copied over? And perhaps with the old variables available with a prefix (_UNPRIVILEGED_DYLD_PRINT_TO_FILE etc)?
What would this break?
- delinka 11y agoThe kext at https://github.com/sektioneins/SUIDGuard https://github.com/sektioneins/SUIDGuard does something like that. For privileged processes, it neuters DYLD_* variables completely.
- deleted 11y ago[deleted]