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


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

Submitter:  Samuel Thibault <sthibaul>
Submitted:  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: 

* Mandatory Fields

Add a New Comment Rich Markup

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>
Group 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>
Group 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)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-04b1.
    Corresponding source code