Change btrfs subvolume default permissions for the guest FS to 755 instead of
authorXavi Leon <xleon@ac.upc.edu>
Thu, 8 Dec 2011 21:15:45 +0000 (16:15 -0500)
committerXavi Leon <xleon@ac.upc.edu>
Thu, 8 Dec 2011 21:15:45 +0000 (16:15 -0500)
700 (which prevents regular users to use the guest fs).

sliver_lxc.py

index 4eb5229..1b64f34 100644 (file)
@@ -52,6 +52,8 @@ class Sliver_LXC(lv.Sliver_Libvirt):
         # subvolume)
         command = ['btrfs', 'subvolume', 'snapshot', refImgDir, containerDir]
         logger.log_call(command, timeout=15*60)
+        command = ['chmod', '755', containerDir]
+        logger.log_call(command, timeout=15*60)
 
         # TODO: set quotas...