]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
bindings: allow access to /var/lib/lxcfs/proc
authorChristian Brauner <cbrauner@suse.de>
Sat, 20 Aug 2016 22:11:13 +0000 (00:11 +0200)
committerChristian Brauner <cbrauner@suse.de>
Thu, 25 Aug 2016 12:56:41 +0000 (14:56 +0200)
Signed-off-by: Christian Brauner <cbrauner@suse.de>
bindings.c

index 6ae0c06e5d0140c4ca1a8256ee7e599fdc6efb3e..04b2a5fd6d85491c3862501ba681476864d58f14 100644 (file)
@@ -4075,6 +4075,9 @@ int proc_open(const char *path, struct fuse_file_info *fi)
 
 int proc_access(const char *path, int mask)
 {
+       if (strcmp(path, "/proc") == 0 && access(path, R_OK) == 0)
+               return 0;
+
        /* these are all read-only */
        if ((mask & ~R_OK) != 0)
                return -EACCES;