This was initially done because of some hook reading the config from
an unprivileged namespace when using unprivileged containers.
But, we nowadays do not do this anymore, either setup stuff before to
or use another source for getting required information (e.g., our
autodev hook uses "/var/lib/lxc/$vmid/devices").
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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
}
}
}