Adding clear Tomoyo option
authorrtrimana <rtrimana@uci.edu>
Tue, 20 Feb 2018 19:55:57 +0000 (11:55 -0800)
committerrtrimana <rtrimana@uci.edu>
Tue, 20 Feb 2018 19:55:57 +0000 (11:55 -0800)
localconfig/iotruntime/cleanrun.bash
localconfig/tomoyo/clear.tomoyo [new file with mode: 0644]

index 8d70bbf..f314db9 100755 (executable)
@@ -27,7 +27,7 @@ ssh iotuser@$SLAVE1 "sudo iptables -F"
 echo "Slave iptables cleaned!"
 ssh iotuser@$SLAVE1 "sudo pkill -f IoTSlave"
 echo "Slave processes killed!"
-ssh iotuser@$SLAVE1 "sudo tomoyo-loadpolicy -df < $RUNTIME_PATH/clear.tomoyo"
+ssh iotuser@$SLAVE1 "sudo tomoyo-loadpolicy -df < $RUNTIME_PATH/tomoyo/clear.tomoyo"
 echo "Slave process jailer cleaned!"
 
 ssh root@$ROUTER "cd /root/setup; ./clean; ./startup.sh"
diff --git a/localconfig/tomoyo/clear.tomoyo b/localconfig/tomoyo/clear.tomoyo
new file mode 100644 (file)
index 0000000..190549a
--- /dev/null
@@ -0,0 +1,4 @@
+<kernel>
+use_profile 0
+use_group 0
+