[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #28383] Non-compliant access behavior?

From: Samuel Thibault
Subject: [bug #28383] Non-compliant access behavior?
Date: Wed, 23 Dec 2009 00:10:52 +0000
User-agent: w3m/0.5.2


                 Summary: Non-compliant access behavior?
                 Project: The GNU Hurd
            Submitted by: sthibaul
            Submitted on: mer 23 déc 2009 01:10:51 CET
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Reproducibility: None
              Size (loc): None
         Planned Release: None
                  Effort: 0.00
Wiki-like text discussion box: 



$ id
uid=1005(buildd) gid=106(sbuild) groups=106(sbuild),1005(buildd)
$ mkdir foo
$ echo a > foo/bar
$ chmod 750 foo
$ sudo chown root.buildd foo
$ cat foo/bar
$ cat > test.c
#include <stdio.h>
#include <unistd.h>
int main(void) {
        printf("%d\n", access("foo/bar", F_OK));
        return 0;
$ make test
$ ./test
access: Permission denied

Apparently access() restricts itself to the real gid, without including
supplementary group IDs.


Reply to this item at:


  Message posté via/par Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]