]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: add cruid= mount option
authorJeff Layton <jlayton@redhat.com>
Tue, 11 Jan 2011 15:33:24 +0000 (10:33 -0500)
committerSteve French <sfrench@us.ibm.com>
Fri, 14 Jan 2011 18:51:11 +0000 (18:51 +0000)
commitf8615c451fd60a22d273bdcbbdf8761839413306
treea3a82eff9b960c59a07d3bc9b8145d6bac24c02c
parentb059768c438cc69a3531579e8cfa1ad105ea559b
cifs: add cruid= mount option

In commit 984a9e83 we separated the "uid" mount option such that it
no longer determined the owner of the credential cache by default. When
we did this, we added a new option to cifs.upcall (--legacy-uid) to
try to make it so that it would behave the same was as it did before.

This ignored a rather important point -- the kernel has no way to know
what options are being passed to cifs.upcall, so it doesn't know what
uid it should use to determine whether to match an existing krb5 session.

The simplest solution is to simply add a new "cruid=" mount option that
only governs the uid owner of the credential cache for the mount.

Unfortunately, this means that the --legacy-uid option in cifs.upcall was
ill-considered and is now useless, but I don't see a better way to deal
with this.

A patch for the mount.cifs manpage will follow once this patch has been
accepted.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c