]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage: use 0711 as the default perms for dirs
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 15 May 2017 11:05:31 +0000 (13:05 +0200)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 15 May 2017 11:09:24 +0000 (12:09 +0100)
There should be no need to make dir based pools world/group readable.
So use 0711, not 0755, as the default perms for storage dirs.

Updates in v2:
 - adapt commit wording to mention dropping group readable as well

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
docs/formatstorage.html.in
src/storage/storage_util.h

index 225e190002acb88777872520c783f0459da07a22..4946ddf708b9b9ded8ad945f11ea7676ef7715f9 100644 (file)
         namespace. It provides information about the permissions to use for the
         final directory when the pool is built. There are 4 child elements.
         The <code>mode</code> element contains the octal permission set.
-        The <code>mode</code> defaults to 0755 when not provided.
+        The <code>mode</code> defaults to 0711 when not provided.
         The <code>owner</code> element contains the numeric user ID.
         The <code>group</code> element contains the numeric group ID.
         If <code>owner</code> or <code>group</code> aren't specified when
index a05c35d81b3ed2450259c560b903972f83228003..6f2a1b189e1d1c87baa980c38696e3e76e6b8f8a 100644 (file)
@@ -138,7 +138,7 @@ int virStorageBackendVolOpen(const char *path, struct stat *sb,
     ATTRIBUTE_RETURN_CHECK
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
 
-# define VIR_STORAGE_DEFAULT_POOL_PERM_MODE 0755
+# define VIR_STORAGE_DEFAULT_POOL_PERM_MODE 0711
 # define VIR_STORAGE_DEFAULT_VOL_PERM_MODE  0600
 
 int virStorageBackendUpdateVolInfo(virStorageVolDefPtr vol,