]> git.proxmox.com Git - mirror_lxc.git/commit
utils: fix lxc_mount_proc_if_needed()
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 May 2017 14:31:42 +0000 (16:31 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 May 2017 17:22:32 +0000 (19:22 +0200)
commit6b1ba5d6be427ef4152381bbb29eea2f2b541fa8
tree2d38b4d45e03b6e72e58347b42186ddc1ec5b78f
parent1de3c9170ec66a9dad0bb4bea8bc967cdec6f4c8
utils: fix lxc_mount_proc_if_needed()

- check for buffer overflow
- only call INFO() after we ensured that readlink() was successful
- simplify logic

Reported-by: Benedikt Rosenkranz beluro@web.de
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/utils.c