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
718c6a24
Commit
718c6a24
authored
Apr 06, 2013
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Sandbox] No need to write the profile to disk, just use the `-p` option.
parent
b832807e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
sandbox-pod
bin/sandbox-pod
+8
-11
No files found.
bin/sandbox-pod
View file @
718c6a24
...
...
@@ -2,6 +2,10 @@
# TODO:
#
# * Check if we should be importing any other default profiles. E.g. `bsd.sb`.
#
# * Use `literal` paths where possible, instead of `regex`.
#
# * 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?
#
...
...
@@ -38,12 +42,9 @@ xcode_app_path = File.expand_path('../..', developer_prefix)
require
'erb'
profile
=
ERB
.
new
(
DATA
.
read
).
result
(
TOPLEVEL_BINDING
)
filename
=
'/tmp/sandbox-pod.sb'
File
.
open
(
filename
,
'w'
)
{
|
f
|
f
.
write
(
profile
)
}
puts
profile
command
=
[
'/usr/bin/sandbox-exec'
,
'-
f'
,
filenam
e
,
pod_bin
,
*
ARGV
]
command
=
[
'/usr/bin/sandbox-exec'
,
'-
p'
,
profil
e
,
pod_bin
,
*
ARGV
]
exec
*
command
...
...
@@ -51,9 +52,10 @@ __END__
(version 1)
(debug allow)
(import "mDNSResponder.sb")
(allow file-ioctl)
(allow sysctl-read)
(allow file-read-metadata)
(allow mach-lookup)
(allow ipc-posix-shm)
(allow process-fork)
...
...
@@ -62,10 +64,6 @@ __END__
; TODO: Needed for appldoc to install a docset
; (allow appleevent-send)
; TODO see if we can restrict this too
;(allow network-outbound (literal "/private/var/run/mDNSResponder"))
(allow network-outbound)
(allow process-exec
(regex
#"^<%= pod_bin %>"
...
...
@@ -79,7 +77,7 @@ __END__
)
)
;; Allow these reads:
(allow file-read-metadata)
(allow file-read*
(regex
; TODO see if we can restrict this more, but it's going to be hard
...
...
@@ -102,7 +100,6 @@ __END__
)
)
;; Allow these writes:
(allow file-write*
(regex
#"^<%= Pod::Config.instance.project_root %>"
...
...
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