Changes since original set: v2: - fix bisectability. The original set added includes in the wrong place in patch #1 and then fixed it in patch #2. The final result of this set is the same but should bisect cleanly. This set is comprised of a couple of patches that fix gssd so that it works with KEYRING: style credcaches. It turns out that gssd already tries to query GSSAPI to find the best credcache to use and only falls back to trawling through likely locations for credcaches if that fails. The problem is that the initial call into GSSAPI for this almost always fails, so it ends up falling back to trawling in the common case. This patch corrects this by making a number of changes: 1) credentials are switched sooner during the upcall and don't switch back 2) credentials are switched using setuid() instead of setfsuid(). The GSSAPI libs depend on the *real* uid being correct. 3) the daemon now forks before doing any credential switching to ensure that unprivileged users can't do anything nefarious to it while it's running under a different uid. With this set of changes, and a bleeding-edge version of the krb5 and keyutils libs, I can now successfully use KEYRING: style credcaches. Jeff Layton (2): gssd: have process_krb5_upcall fork before handling upcall gssd: switch real uid instead of just fsuid when looking for user creds utils/gssd/gssd_proc.c | 47 ++++++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 17 deletions(-) -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html