From a8c22f5ca2f3b7bc10c301e952c44903ed92ada7 Mon Sep 17 00:00:00 2001 From: Joshua Moody Date: Wed, 15 Oct 2014 22:51:28 +0200 Subject: [PATCH 1/2] Script and plists for disabling instruments permissions --- ...pple.dt.instruments.process.analysis.plist | 34 +++++++++++++++++++ ...om.apple.dt.instruments.process.kill.plist | 34 +++++++++++++++++++ script/ci/travis/instruments-auth.sh | 4 +++ 3 files changed, 72 insertions(+) create mode 100644 script/ci/travis/com.apple.dt.instruments.process.analysis.plist create mode 100644 script/ci/travis/com.apple.dt.instruments.process.kill.plist create mode 100755 script/ci/travis/instruments-auth.sh diff --git a/script/ci/travis/com.apple.dt.instruments.process.analysis.plist b/script/ci/travis/com.apple.dt.instruments.process.analysis.plist new file mode 100644 index 000000000..fb33b7663 --- /dev/null +++ b/script/ci/travis/com.apple.dt.instruments.process.analysis.plist @@ -0,0 +1,34 @@ + + + + + allow-root + + authenticate-user + + class + user + comment + Rights for Instruments + created + 409022991.255041 + group + admin + identifier + com.apple.dt.instruments.dtsecurity.xpc + modified + 409022991.255041 + requirement + identifier "com.apple.dt.instruments.dtsecurity.xpc" and anchor apple + session-owner + + shared + + timeout + 36000 + tries + 10000 + version + 0 + + diff --git a/script/ci/travis/com.apple.dt.instruments.process.kill.plist b/script/ci/travis/com.apple.dt.instruments.process.kill.plist new file mode 100644 index 000000000..5377e88b5 --- /dev/null +++ b/script/ci/travis/com.apple.dt.instruments.process.kill.plist @@ -0,0 +1,34 @@ + + + + + allow-root + + authenticate-user + + class + user + comment + Rights for Instruments + created + 409022991.27266097 + group + admin + identifier + com.apple.dt.instruments.dtsecurity.xpc + modified + 409022991.27266097 + requirement + identifier "com.apple.dt.instruments.dtsecurity.xpc" and anchor apple + session-owner + + shared + + timeout + 5 + tries + 10000 + version + 0 + + diff --git a/script/ci/travis/instruments-auth.sh b/script/ci/travis/instruments-auth.sh new file mode 100755 index 000000000..a0f90c661 --- /dev/null +++ b/script/ci/travis/instruments-auth.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +SCRIPT_DIR="${PWD}/script/ci/travis" +sudo security authorizationdb write com.apple.dt.instruments.process.analysis < $SCRIPT_DIR/com.apple.dt.instruments.process.analysis.plist +sudo security authorizationdb write com.apple.dt.instruments.process.kill < $SCRIPT_DIR/com.apple.dt.instruments.process.kill.plist From 8ed6631714172fd0cb1d07304e7cfce788d1c366 Mon Sep 17 00:00:00 2001 From: Joshua Moody Date: Wed, 15 Oct 2014 22:52:05 +0200 Subject: [PATCH 2/2] Authorize instruments in before_script on Travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 8d194f4e6..bc553cf77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: objective-c before_script: + - script/ci/travis/instruments-auth.sh - gem install json - gem uninstall -Vax --force --no-abort-on-dependent calabash-cucumber - gem uninstall -Vax --force --no-abort-on-dependent run_loop