One more reason to use 2.6 kernels I guess.

It's a common security practice to mount /tmp with noexec. However,
this doesn't prevent the following to happen if you're still using a
2.4 kernel:

$ cc hello.c -o hello
$ /lib/ld-linux.so.2 /tmp/hello
Hello World

Fortunately though you'd not encounter this if you're using a 2.6
kernel. This is what you'll see on a 2.6 kernel:

$ cc hello.c -o hello
$ /lib/ld-linux.so.2 /tmp/hello --version
/tmp/hello: error while loading shared libraries: /tmp/hello: failed
to map segment from shared object: Operation not permitted

Hope this helps.
-- 

Paolo Alexis Falcone
[EMAIL PROTECTED]
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to