[lkml]   [1999]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: capabilities in elf headers, (my) final (and shortest) iteration
Riley Williams writes the following:
> > ...and works only for some types of files (how about a webserver
> > written in Perl?).
>That's up to the PERL interpreter to handle, not the kernel. After
>all, the kernel ignores s[gu]id on scripts already, and the only
>reason s[gu]id works on PERL scripts is because the PERL interpreter
>handles the relevant capabilities if it sees the s[gu]id flag set on
>the script it's running.

Just where do you think the perl interpreter is going to look to decide what
capabilities to enable? suidperl just stats the script and looks at the
setuid bits to decide what to do. If the capability bits are not in the fs,
where will suidcapperl find them? There ain't no ELF header in a script.

Not that I really care one way or the other about capabilities, just
wondering if anyone has really thought this through before posting "it's up
to the interpreter"

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:51    [W:0.102 / U:12.380 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site