]> git.proxmox.com Git - pve-cluster.git/blobdiff - data/src/pmxcfs.c
pmxcfs: do not grant LXC configs o+r permissions anymore
[pve-cluster.git] / data / src / pmxcfs.c
index 40ee6cd598b84313cedc3e6cb0ba7160fc35ec31..d78a248e760241301c1cb614ee5fedd71bf440c6 100644 (file)
@@ -142,11 +142,7 @@ static int cfs_fuse_getattr(const char *path, struct stat *stbuf)
                        if (S_ISDIR(stbuf->st_mode) || S_ISLNK(stbuf->st_mode)) {
                                stbuf->st_mode &= 0777755; // access for other users
                        } else {
-                               if (path_is_lxc_conf(path)) {
-                                       stbuf->st_mode &= 0777755; // access for other users
-                               } else {
-                                       stbuf->st_mode &= 0777750; // no access for other users
-                               }
+                               stbuf->st_mode &= 0777750; // no access for other users
                        }
                }
        }