Commit ab4fc727 authored by Seth Forshee's avatar Seth Forshee Committed by Shrirang Bagul
Browse files

UBUNTU: SAUCE: (namespace) autofs4: Use real_cred for requestor's ids

BugLink: http://bugs.launchpad.net/bugs/1629204



autofs passes the uid and gid of the user requesting a mount to
userspace, taking them from current->cred. ca6fe334 "fs: Call
d_automount with the filesystems creds" causes a regression as
current->cred is now the credentials of real root during automount
and not the credentials of the user. Fix this by taking the ids
from current->real_cred instead.

Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarOndrej Kubik <ondrej.kubik@canonical.com>
(cherry picked from commit d8779ed50cd530256e5f6bf083c1bd95f83d23f5)
Signed-off-by: default avatarShrirang Bagul <shrirang.bagul@canonical.com>
parent 209aa124
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment