LWN.net Logo

Security benefits of noexec?

Security benefits of noexec?

Posted Mar 10, 2008 22:12 UTC (Mon) by ballombe (subscriber, #9523)
In reply to: Security benefits of noexec? by epa
Parent article: Secure temporary files in Linux (ZDNet India)

Do you mean /lib/ld-linux.so.2 ? then yes.
cp /bin/ls /tmp
chmod a-x /tmp/ls
/lib/ld-linux.so.2 /tmp/ls


(Log in to post comments)

Security benefits of noexec?

Posted Mar 11, 2008 9:02 UTC (Tue) by Wummel (subscriber, #7591) [Link]

The /lib/ld-linux.so flaw has been fixed in recent (2.6.24 iirc) kernels:
$ /lib/ld-linux.so.2 /tmp/ls
/tmp/ls: error while loading shared libraries: /tmp/ls: failed to map segment from shared
object: Operation not permitted

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