LWN.net Logo

On the importance of return codes

On the importance of return codes

Posted Dec 3, 2009 18:25 UTC (Thu) by khc (subscriber, #45209)
In reply to: On the importance of return codes by cesarb
Parent article: On the importance of return codes

However, it can make a copy of the environment, with LD_PRELOAD filtered out, and use the new copy.


(Log in to post comments)

blacklist vs whitelist

Posted Dec 9, 2009 3:56 UTC (Wed) by pjm (subscriber, #2080) [Link]

That would be a blacklist approach. The whole point of cesarb's comment is that one would usually prefer a whitelist approach: create a new environment containing just PATH (with a known safe value), HOME, and a couple of others.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds