[Bug 282575] linux jail: setting S_ISGID on directory should be ignored

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 05 Nov 2024 22:27:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282575

            Bug ID: 282575
           Summary: linux jail: setting S_ISGID on directory should be
                    ignored
           Product: Base System
           Version: 13.4-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: joerg@FreeBSD.org

Running an installer of a large software (Intel Modelsim), it tries to set the
S_ISGID on many of the directories it is going to install. On Linux, this bit
causes BSD semantics for files created within such a directory (i.e. the group
is inherited from the directory rather than from the process creating it).

Currently, attempting to set S_ISGID from within a (Linux?) jail causes an
EPERM. As the desired behaviour (inherit group membership for new files) is the
BSD behaviour anyway, it makes most sense to simply ignore this bit from within
a jail, rather than triggering an error.

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