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.
MARKED AS SPAM
cy@ has an informative post on the history: https://forums.FreeBSD.org/threads/sgid-on-directories.70392/post-612829 The proposed change seems appropriate. It looks like this could be addressed (limited to Linux binaries) by passing a flag to kern_fchmodat from linux_chmod / linux_fchmodat to ignore S_ISGID.