Skip to content

Commit

Permalink
set -e
Browse files Browse the repository at this point in the history
  • Loading branch information
fx5 committed Feb 26, 2013
1 parent cb0f60d commit 295185e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions grab-current.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh

set -e
tomoyo-selectpolicy -r "<kernel> /usr/bin/firefox" </sys/kernel/security/tomoyo/domain_policy | tomoyo-sortpolicy >domain_policy
egrep "/usr/bin/firefox|/usr/lib/firefox/firefox|lightdm-guest-session-wrapper" /sys/kernel/security/tomoyo/exception_policy >exception_policy
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh

set -e
tomoyo-loadpolicy -d <domain_policy
tomoyo-loadpolicy -e <exception_policy

echo "Don't forget to do # tomoyo-savepolicy"
echo "Don't forget to run"
echo " # tomoyo-savepolicy"

0 comments on commit 295185e

Please sign in to comment.