Re: /bin/false (was Re: security questions)
In article <Pine.LNX.4.21.0010292346210.4223-100000@decoy.ath.cx>,
sena <sena@decoy.ath.cx> wrote:
>I heard that Jonathan Markevich wrote this on 29/10/00:
>
>> However, writing one in C proved to be simple, and an afternoon's worth
>> of fun.
>>
>--(snip - false.c)--
> int main() { return 1; }
>--(snip - false.c)--
>10 seconds writing plus 3 minutes worth of fun is more like it... :)
Ah, way too big ...
#include <linux/unistd.h>
#include <asm/unistd.h>
int errno;
_syscall1(void, exit, int, status);
int main(void)
{
exit(1);
}
void *_start = main;
Compile with cc -s -o false -nostdlib false.c
Mike.
--
People get the operating system they deserve.
Reply to: