Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Oct 2024 20:40:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 281820] mdo: failed to call initgroups: Operation not permitted
Message-ID:  <bug-281820-227-jyrygQYBvC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-281820-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281820

--- Comment #1 from Jose Luis Duran <jlduran@gmail.com> ---
Created attachment 254060
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=254060&action=edit
WIP: Not thoroughly tested

- mac_do: Allow a gid-only rule to any
- mac_do: Avoid locking around vn_fullpath()
- mac_do: check if freebuf is non-NULL before freeing

This is my weekly progress on this bug.  I would like to test it further, and
familiarize with the code a bit more before submitting it for review.

Posting it here just in case it is of any help.

Tests:

As 'root' issue:

    # kldload mac_do
    # sysctl security.mac.do.rules=gid=0:any [1]
    # sysctl security.mac.do.rules=gid=1001:any [2]

A user 'freebsd' already exists with a GID 1001 and belongs to 'wheel':

    $ mdo pkg upgrade [1] [2]
    Updating FreeBSD repository catalogue...
    ...

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281820-227-jyrygQYBvC>