Mail Archives: cygwin-developers/2002/09/25/10:42:25
On Wed, Sep 25, 2002 at 06:31:43PM +0400, Egor Duda wrote:
> Hi!
>
> Wednesday, 25 September, 2002 Corinna Vinschen vinschen AT redhat DOT com wrote:
>
> CV> On Wed, Sep 25, 2002 at 10:16:53AM -0400, Chris Faylor wrote:
> >> ltp/setgroups01.c: child process exited abnormally
> >> XFAIL: ltp/setgroups01.c (execute)
>
> CV> Did you check that in the setgroups01.c test:
>
> CV> void
> CV> setup()
> CV> {
> CV> [...]
> CV> if ( geteuid() != 0 )
> CV> tst_brkm(TBROK, cleanup, "Must be ROOT to run this test.");
>
> This check (and also similar checks in other tests) should be fixed to
> reflect cygwin's notion of administrative privileges. What's the
> proper way to check if current process is running under privileged
> account?
There is none which would satisfy me. Theoretically you would have
to check if the process token has the needed user rights "Act as part
of the operating system", "Create process level token", "Replace a
process level token". And ntsec should be on.
OTOH, cron only asks for uid 18...
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin AT cygwin DOT com
Red Hat, Inc.
- Raw text -