]> git.proxmox.com Git - mirror_lxcfs.git/commit - lxcfs.c
skip empty entries under /proc/self/cgroup
authorChristian Brauner <cbrauner@suse.de>
Sat, 9 Jul 2016 11:19:06 +0000 (13:19 +0200)
committerChristian Brauner <cbrauner@suse.de>
Sat, 9 Jul 2016 13:51:25 +0000 (15:51 +0200)
commita67719f64d07d7fee96b1e145a03659fe4db0c6e
tree5d88ff0eefd5aecb7940d7b65e421bcc48caa7a3
parent3b6c5c19738e9c259f51ab35159d6b33bf5b6029
skip empty entries under /proc/self/cgroup

If cgroupv2 is enabled either alone or together with legacy hierarchies
/proc/self/cgroup can contain entries of the form:

        0::/

This will cause lxcfs to fail the cgroup mounts because it parses out the empty
string "" and later on passes it to mount(). Let's skip such entries.

Signed-off-by: Christian Brauner <cbrauner@suse.de>
bindings.c
lxcfs.c