You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by André Malo <nd...@perlig.de> on 2004/04/11 14:12:42 UTC

setuid, setgid and sticky bits

Aloa,

APR should support those POSIX bits on systems where it makes sense. Attached
is a patch for file_io/unix, which seems to used for netware and OS/2 as
well (but seems to be ok in the first glance).

What do you think about it? If it's cool, I'd like to get it backported to 0.9
as well so we can use it (also in httpd ;)

nd

Re: setuid, setgid and sticky bits

Posted by Jeff Trawick <tr...@attglobal.net>.
André Malo wrote:
> * André Malo <nd...@perlig.de> wrote:
> 
> 
>>* Joe Orton <jo...@manyfish.co.uk> wrote:
>>
>>
>>>Thanks for the patch and thanks for nagging :) I committed it with
>>>conditional use of S_ISVTX since POSIX doesn't require that one.
>>
>>Hm. Is it possible to port it back to 0.9 as well?
> 
> 
> anyone?

done finally


Re: setuid, setgid and sticky bits

Posted by André Malo <nd...@perlig.de>.
* Jeff Trawick <tr...@attglobal.net> wrote:

> André Malo wrote:
> > * André Malo <nd...@perlig.de> wrote:
> > 
> > 
> >>* Joe Orton <jo...@manyfish.co.uk> wrote:
> >>
> >>
> >>>Thanks for the patch and thanks for nagging :) I committed it with
> >>>conditional use of S_ISVTX since POSIX doesn't require that one.
> >>
> >>Hm. Is it possible to port it back to 0.9 as well?
> > 
> > 
> > anyone?
> 
> sure, I'll take care of it
> 
> in other words, set up a cron job to start sending private nags to me every
> 24 hours until done

;-)

nd

Re: setuid, setgid and sticky bits

Posted by Jeff Trawick <tr...@attglobal.net>.
André Malo wrote:
> * André Malo <nd...@perlig.de> wrote:
> 
> 
>>* Joe Orton <jo...@manyfish.co.uk> wrote:
>>
>>
>>>Thanks for the patch and thanks for nagging :) I committed it with
>>>conditional use of S_ISVTX since POSIX doesn't require that one.
>>
>>Hm. Is it possible to port it back to 0.9 as well?
> 
> 
> anyone?

sure, I'll take care of it

in other words, set up a cron job to start sending private nags to me every 24 
hours until done


Re: setuid, setgid and sticky bits

Posted by André Malo <nd...@perlig.de>.
* André Malo <nd...@perlig.de> wrote:

> * Joe Orton <jo...@manyfish.co.uk> wrote:
> 
> > Thanks for the patch and thanks for nagging :) I committed it with
> > conditional use of S_ISVTX since POSIX doesn't require that one.
> 
> Hm. Is it possible to port it back to 0.9 as well?

anyone?

nd
-- 
"Solides und umfangreiches Buch"
                                          -- aus einer Rezension

<http://pub.perlig.de/books.html#apache2>

Re: setuid, setgid and sticky bits

Posted by André Malo <nd...@perlig.de>.
* Joe Orton <jo...@manyfish.co.uk> wrote:

> Thanks for the patch and thanks for nagging :) I committed it with
> conditional use of S_ISVTX since POSIX doesn't require that one.

Hm. Is it possible to port it back to 0.9 as well?

nd
-- 
>>> Muschelflucht-Zusatzeinrichtung.
>> Shell-Escape ist ja noch klar, aber `Zusatzeinrichtung'?
> extension?
Feature.                          -- gefunden in de.org.ccc

Re: setuid, setgid and sticky bits

Posted by André Malo <nd...@perlig.de>.
* Joe Orton <jo...@manyfish.co.uk> wrote:

> Thanks for the patch and thanks for nagging :) I committed it with
> conditional use of S_ISVTX since POSIX doesn't require that one.

Oh, I've thought it did. Anyway, thanks :-)

nd
-- 
die (eval q-qq[Just Another Perl Hacker
]
;-)
# André Malo, <http://www.perlig.de/> #

Re: setuid, setgid and sticky bits

Posted by Joe Orton <jo...@manyfish.co.uk>.
Thanks for the patch and thanks for nagging :) I committed it with
conditional use of S_ISVTX since POSIX doesn't require that one.

joe

Re: setuid, setgid and sticky bits

Posted by André Malo <nd...@perlig.de>.
* André Malo <nd...@perlig.de> wrote:

> * "William A. Rowe, Jr." <wr...@rowe-clan.net> wrote:
> 
> > At 01:36 PM 4/16/2004, André Malo wrote:
> > >* André Malo <nd...@perlig.de> wrote:
> > >
> > >> Aloa,
> > >> 
> > >> APR should support those POSIX bits on systems where it makes sense.
> > >> Attached is a patch for file_io/unix, which seems to used for netware
> > >and> OS/2 as well (but seems to be ok in the first glance).
> > >> 
> > >> What do you think about it? If it's cool, I'd like to get it backported
> > >to> 0.9 as well so we can use it (also in httpd ;)
> > 
> > I don't see that this would pose any harm to win32.
> > 
> > However how should apr react when asked to create a file or modify the
> > perms in such a way that the current platform doesn't expect?
> 
> I'd say, it should just ignore them in that case.

Just wanted to ping again.

-- 
my @japh = (sub{q~Just~},sub{q~Another~},sub{q~Perl~},sub{q~Hacker~});
my $japh = q[sub japh { }]; print join       #########################
 [ $japh =~ /{(.)}/] -> [0] => map $_ -> ()  #            André Malo #
=> @japh;                                    # http://pub.perlig.de/ #

Re: setuid, setgid and sticky bits

Posted by André Malo <nd...@perlig.de>.
* "William A. Rowe, Jr." <wr...@rowe-clan.net> wrote:

> At 01:36 PM 4/16/2004, André Malo wrote:
> >* André Malo <nd...@perlig.de> wrote:
> >
> >> Aloa,
> >> 
> >> APR should support those POSIX bits on systems where it makes sense.
> >> Attached is a patch for file_io/unix, which seems to used for netware and
> >> OS/2 as well (but seems to be ok in the first glance).
> >> 
> >> What do you think about it? If it's cool, I'd like to get it backported
> >to> 0.9 as well so we can use it (also in httpd ;)
> 
> I don't see that this would pose any harm to win32.
> 
> However how should apr react when asked to create a file or modify the
> perms in such a way that the current platform doesn't expect?

I'd say, it should just ignore them in that case.

nd
-- 
> [...] weiß jemand zufällig, was der Tag DIV ausgeschrieben bedeutet?
DIVerses. Benannt nach all dem unstrukturierten Zeug, was die Leute da
so reinpacken und dann absolut positionieren ...
                           -- Florian Hartig und Lars Kasper in dciwam

Re: setuid, setgid and sticky bits

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 01:36 PM 4/16/2004, André Malo wrote:
>* André Malo <nd...@perlig.de> wrote:
>
>> Aloa,
>> 
>> APR should support those POSIX bits on systems where it makes sense.
>> Attached is a patch for file_io/unix, which seems to used for netware and
>> OS/2 as well (but seems to be ok in the first glance).
>> 
>> What do you think about it? If it's cool, I'd like to get it backported to
>> 0.9 as well so we can use it (also in httpd ;)

I don't see that this would pose any harm to win32.

However how should apr react when asked to create a file or modify the
perms in such a way that the current platform doesn't expect?





Re: setuid, setgid and sticky bits

Posted by André Malo <nd...@perlig.de>.
* André Malo <nd...@perlig.de> wrote:

> Aloa,
> 
> APR should support those POSIX bits on systems where it makes sense.
> Attached is a patch for file_io/unix, which seems to used for netware and
> OS/2 as well (but seems to be ok in the first glance).
> 
> What do you think about it? If it's cool, I'd like to get it backported to
> 0.9 as well so we can use it (also in httpd ;)

anyone?

nd
-- 
Treat your password like your toothbrush. Don't let anybody else
use it, and get a new one every six months.  -- Clifford Stoll

                                    (found in ssl_engine_pphrase.c)