Add /dev and /tmp for Testing
authorKunhoon Baik <knhoon.baik@samsung.com>
Wed, 21 Jul 2021 08:44:08 +0000 (17:44 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Wed, 21 Jul 2021 08:44:08 +0000 (17:44 +0900)
 - some program may access to /dev/random by using random function
   For that, add /dev bind mount until finding better way

 - Tizen application cannot write some volatile data to /opt/var
   For that, provide /tmp mount until finding better way

test/runner-sandbox.cfg

index f5767afcabebdada4dfc209a4d16925f6b232cf7..1d11ac4d024635222af3fe5bd49c2d32f60ecc30 100644 (file)
@@ -88,14 +88,50 @@ mount {
 }
 
 mount {
-    src: "/usr"
-    dst: "/usr"
+    src: "/usr/share"
+    dst: "/usr/share"
     is_bind: true
     nosuid: true
     nodev: true
     rw: false
 }
 
+mount {
+    src: "/usr/lib"
+    dst: "/usr/lib"
+    is_bind: true
+    nosuid: true
+    nodev: true
+    rw: false
+}
+
+mount {
+    src: "/usr/bin"
+    dst: "/usr/bin"
+    is_bind: true
+    nosuid: true
+    nodev: true
+    rw: false
+}
+
+mount {
+    src: "/tmp"
+    dst: "/tmp"
+    is_bind: true
+    nosuid: true
+    nodev: true
+    rw: true
+}
+
+mount {
+    src: "/dev"
+    dst: "/dev"
+    is_bind: true
+    nosuid: true
+    nodev: false
+    rw: false
+}
+
 # Seccomp settings
 seccomp_string: "ALLOW {"
 seccomp_string: "    SYSCALL[1]," #exit