Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 208203 Details for
Bug 212817
use Sandbox/Seatbelt to confine ebuild on Mac OS X 10.5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add sandboxing to recent version of bootstrap-prefix.sh
bootstrap-prefix.sh.patch (text/plain), 1.27 KB, created by
Michael Weiser
on 2009-10-25 12:50:34 UTC
(
hide
)
Description:
add sandboxing to recent version of bootstrap-prefix.sh
Filename:
MIME Type:
Creator:
Michael Weiser
Created:
2009-10-25 12:50:34 UTC
Size:
1.27 KB
patch
obsolete
>--- bootstrap-prefix.sh.orig 2009-09-19 18:47:03.000000000 +0200 >+++ bootstrap-prefix.sh 2009-09-19 19:17:31.000000000 +0200 >@@ -347,6 +347,8 @@ > S="${S}/prefix-portage-${PV}" > cd "${S}" > >+ patch -p1 < "${DISTDIR}/portage-2.2.00.14200-msb.patch" >+ > einfo "Compiling ${A%-*}" > econf \ > --with-offset-prefix="${ROOT}" \ >@@ -912,6 +914,39 @@ > GENTOO_MIRROR=${GENTOO_MIRROR:="http://distfiles.gentoo.org/distfiles"} > GCC_APPLE_URL="http://www.opensource.apple.com/darwinsource/tarballs/other" > GENTOO_URL=${GENTOO_URL:="http://gentoo.osuosl.org"} >+MACOSSANDBOX_BINARY="/usr/bin/sandbox-exec" >+MACOSSANDBOX_PROFILE='(version 1) >+ >+(allow default) >+ >+(deny file-write*) >+ >+(allow file-read* file-write* >+ (literal >+ #"@@WRITEABLE_PREFIX@@" >+ ) >+ >+ (regex >+ #"^@@WRITEABLE_PREFIX@@/" >+ #"^(/private)?/var/tmp" >+ #"^(/private)?/tmp" >+ ) >+) >+ >+(allow file-read-data file-write-data >+ (regex >+ #"^/dev/null$" >+ #"^(/private)?/var/run/syslog$" >+ ) >+)' >+ >+if [ -x "$MACOSSANDBOX_BINARY" -a -z "$MACOSSANDBOX" ] ; then >+ einfo "Sandboxing bootstrap to ${ROOT} using Mac OS X ${MACOSSANDBOX_BINARY}" >+ MACOSSANDBOX=1 \ >+ exec ${MACOSSANDBOX_BINARY} -p "$(echo "${MACOSSANDBOX_PROFILE}" | \ >+ sed -e "s,@@WRITEABLE_PREFIX@@,${ROOT},g")" \ >+ $0 $@ >+fi > > export CFLAGS CXXFLAGS MAKE >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212817
:
145637
|
146708
|
208202
|
208203
|
208569
|
225873
|
238679
|
238687
|
248497