Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
b832807e
Commit
b832807e
authored
Apr 06, 2013
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Sandbox] Cleanup TODOs.
parent
60803194
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
sandbox-pod
bin/sandbox-pod
+17
-6
No files found.
bin/sandbox-pod
View file @
b832807e
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# TODO:
#
# * How are we going to handle allowing processes like `git`, `svn`, and `hg`
# to work when they might be somewhere in a non-standard prefix?
#
# * Can we scope rules like file-read/file-write to specific processes? E.g.
# limit `git` to only those directories where any git operations should be
# performed, while allowing `xcodebuild` access to more directories.
#
# * Limit the scope of the rules where possible. E.g. `network-outbound` and
# access to the user home directory.
#
# * Installing docs with `appledoc` requires Apple Events and iirc, from a
# CoreInt episode, this is damn hard to do in a sandbox environment.
#
if
$0
==
__FILE__
if
$0
==
__FILE__
#ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__)
#require "rubygems"
#require "bundler/setup"
$:
.
unshift
File
.
expand_path
(
'../../lib'
,
__FILE__
)
$:
.
unshift
File
.
expand_path
(
'../../lib'
,
__FILE__
)
end
end
require
'pathname'
require
'pathname'
...
@@ -17,7 +30,6 @@ require 'rbconfig'
...
@@ -17,7 +30,6 @@ require 'rbconfig'
ruby_bin
=
File
.
join
(
RbConfig
::
CONFIG
[
'bindir'
],
RbConfig
::
CONFIG
[
'ruby_install_name'
])
ruby_bin
=
File
.
join
(
RbConfig
::
CONFIG
[
'bindir'
],
RbConfig
::
CONFIG
[
'ruby_install_name'
])
ruby_prefix
=
RbConfig
::
CONFIG
[
'prefix'
]
ruby_prefix
=
RbConfig
::
CONFIG
[
'prefix'
]
# TODO how are we going to handle the required tools in the PATH? e.g. git, svn, hg
homebrew_prefix
=
`brew --prefix`
.
strip
homebrew_prefix
=
`brew --prefix`
.
strip
developer_prefix
=
`xcode-select --print-path`
.
strip
developer_prefix
=
`xcode-select --print-path`
.
strip
...
@@ -47,8 +59,7 @@ __END__
...
@@ -47,8 +59,7 @@ __END__
(allow process-fork)
(allow process-fork)
(allow system-socket)
(allow system-socket)
; TODO this doesn’t actually work atm, because appledoc needs to be code signed for apple events to be allowed.
; TODO: Needed for appldoc to install a docset
; Needed for appldoc to install a docset
; (allow appleevent-send)
; (allow appleevent-send)
; TODO see if we can restrict this too
; TODO see if we can restrict this too
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment