apparmor: fix disconnected bind mnts reconnection
authorJohn Johansen <john.johansen@canonical.com>
Fri, 25 Jul 2014 11:02:08 +0000 (04:02 -0700)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:11 +0000 (14:04 +0200)
commit31d3307054aececcc1197eb119ebc35a5f4b60fc
tree78a06ad9915dc3a1e7e8589e48b10afbf5359814
parent8d14bc992000791b414bd536fe3516303c5c039e
apparmor: fix disconnected bind mnts reconnection

commit f2e561d190da7ff5ee265fa460e2d7f753dddfda upstream.

Bind mounts can fail to be properly reconnected when PATH_CONNECT is
specified. Ensure that when PATH_CONNECT is specified the path has
a root.

BugLink: http://bugs.launchpad.net/bugs/1319984
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
security/apparmor/path.c