"If the specified file is a regular file, one or more of the S_IXUSR, S_IXGRP, or S_IXOTH bits of the file mode are set, and the process has appropriate privileges, it is implementation-defined whether the set-user-ID and set-group-ID bits are altered."
"If the specified file is a regular file, one or more of the S_IXUSR,
S_IXGRP, or S_IXOTH bits of the file mode are set, and the process
has appropriate privileges, it is implementation-defined whether the
set-user-ID and set-group-ID bits are altered."

Hnasar/pjdfstest,Hnasar/pjdfstest