]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - fs/shiftfs.c
UBUNTU: SAUCE: shiftfs: record correct creator credentials
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 10 Apr 2020 14:55:00 +0000 (16:55 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commit629edd70891c82c02c5da532597db41d768353ee
treee9d853316f1e12e078a18907d6c916647a0b5d5c
parentbbd805a152e19c653161dc699550453c6d6584a1
UBUNTU: SAUCE: shiftfs: record correct creator credentials

BugLink: https://bugs.launchpad.net/bugs/1872094
When shiftfs is nested we failed to be able to create any files or
access directories because we recorded the wrong creator credentials. We
need to record the credentials of the creator of the lowers mark mount
of shiftfs. Otherwise we aren't privileged wrt to the shiftfs layer in
the nesting case. This is similar to how we always record the user
namespace of the base filesystem.

Suggested-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/shiftfs.c