bugThe GNU Hurd - Bugs: bug #28383, Supplementary groups aren't use by...


bug #28383: Supplementary groups aren't use by access()

Submitted by:  Samuel Thibault <sthibaul>
Submitted on:  Wed 23 Dec 2009 12:10:51 AM UTC  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Reproducibility:  Every Time
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 25 Dec 2009 10:01:39 PM UTC, comment #1: 

It is believed that gcc should just not use access() in the first

Samuel Thibault <sthibaul>
Project Administrator
Wed 23 Dec 2009 12:10:51 AM UTC, original submission:  

$ 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.

Samuel Thibault <sthibaul>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by sthibaul (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-25 sthibaul StatusNone => Wont Fix
        ReproducibilityNone => Every Time
        SummaryNon-compliant access behavior? => Supplementary groups aren't use by access()

    Back to the top

    Powered by Savane 3.6