lkml.org 
[lkml]   [1999]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: capabilities in elf headers, (my) final (and shortest) iteration
Date
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 majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean