Mount smackfs into containers 92/21392/2
authorPiotr Bartosiewicz <p.bartosiewi@partner.samsung.com>
Thu, 15 May 2014 11:24:26 +0000 (13:24 +0200)
committerJan Olszak <j.olszak@samsung.com>
Tue, 20 May 2014 14:06:20 +0000 (07:06 -0700)
[Bug/Feature]   There were no possibilities to check SMACK labels being
                inside the container
[Cause]         Smackfs was not mounted
[Solution]      N/A
[Verification]  Build, install, check the result of command:
                ls -1Z # (inside container)
                Should output labels, not '?'

Change-Id: I8aaf961b05e87725df85b6031efb60c45142b977

server/configs/libvirt-config/business.xml
server/configs/libvirt-config/private.xml

index f2317a8..8f044c0 100644 (file)
       <source dir='/var/run/containers/business/run'/>
       <target dir='/var/run'/>
     </filesystem>
+    <!-- Enable access to the SMACK labels -->
+    <!-- TODO: This only helps investigating smack problems,
+               and should be removed eventually -->
+    <filesystem type='mount'>
+      <source dir='/sys/fs/smackfs'/>
+      <target dir='/sys/fs/smackfs'/>
+    </filesystem>
   </devices>
 </domain>
index 7df0db4..26cf1f6 100644 (file)
       <source dir='/var/run/containers/private/run'/>
       <target dir='/var/run'/>
     </filesystem>
+    <!-- Enable access to the SMACK labels -->
+    <!-- TODO: This only helps investigating smack problems,
+               and should be removed eventually -->
+    <filesystem type='mount'>
+      <source dir='/sys/fs/smackfs'/>
+      <target dir='/sys/fs/smackfs'/>
+    </filesystem>
   </devices>
 </domain>