LWN.net Logo

How to write a Linux virus in 5 easy steps

How to write a Linux virus in 5 easy steps

Posted Feb 12, 2009 14:50 UTC (Thu) by cate (subscriber, #1359)
In reply to: How to write a Linux virus in 5 easy steps by nix
Parent article: How to write a Linux virus in 5 easy steps

The "executable bit" is only an hits (for program in path). Every program,
which is readable is also executable! Classical examples: execute the
program as argument of the dynamic linker, executing scripts using the
interpreter. Eventually a copy of the program and then changing permission
bits. In short time the exploiters could use such work-arounds. So
execution bit should not be used for security reasons


(Log in to post comments)

How to write a Linux virus in 5 easy steps

Posted Feb 12, 2009 20:46 UTC (Thu) by nix (subscriber, #2304) [Link]

You don't get it. The interpreter is a specialized interpreter
for .desktop files, which does all the parse-and-launch stuff. *It* checks
the state of the executable bit on the .desktop files that it is invoked
with, and *nothing else runs programs named in .desktop files at all*.

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