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: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Wont FixPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenReproducibility: Every Time
Size (loc): NonePlanned 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 Member
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 Member


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 25 Dec 2009 10:01:39 PM UTCsthibaulStatusNone=>Wont Fix
      ReproducibilityNone=>Every Time
      SummaryNon-compliant access behavior?=>Supplementary groups aren't use by access()

    Back to the top

    Powered by Savane 3.1-cleanup1