commit:     6b13996ffd2f9aee9bf924a304a4a4073ad84421
Author:     Michael Weiser <michael.weiser <AT> gmx <DOT> de>
AuthorDate: Fri Dec  8 10:00:47 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Dec 12 08:12:36 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=6b13996f

Fix macOS 10.13 seatbelt sandbox suid bit setting

macOS 10.13 changed the defaults for what is allowed in a seatbelt
sandbox, denying setting suid and sgid bits on files. See
https://trac.macports.org/ticket/54963 for additional information.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 pym/portage/const.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/portage/const.py b/pym/portage/const.py
index 172c5b189..bdb287379 100644
--- a/pym/portage/const.py
+++ b/pym/portage/const.py
@@ -83,7 +83,7 @@ MACOSSANDBOX_BINARY      = "/usr/bin/sandbox-exec"
 MACOSSANDBOX_PROFILE     = '''(version 1)
 (allow default)
 (deny file-write*)
-(allow file-write*
+(allow file-write* file-write-setugid
 @@MACOSSANDBOX_PATHS@@)
 (allow file-write-data
 @@MACOSSANDBOX_PATHS_CONTENT_ONLY@@)'''

Reply via email to