diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-08-12 14:32:54 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2008-08-12 14:32:54 -0400 |
commit | 1759f089e1424311de8437e7923ba40838dba9ef (patch) | |
tree | b49caeb01bfd9ec2272d76ded7b52248fff9f06f /source3/libsmb/libsmb_setget.c | |
parent | 68fe1a1d86dddc387753220790bb9ac5c096edf1 (diff) | |
download | samba-1759f089e1424311de8437e7923ba40838dba9ef.tar.gz samba-1759f089e1424311de8437e7923ba40838dba9ef.tar.bz2 samba-1759f089e1424311de8437e7923ba40838dba9ef.zip |
cifs.upcall: negatively instantiate keys on error
When a request-key upcall exits without instantiating a key, the kernel
will negatively instantiate the key with a 60s timeout. Older kernels,
however seem to also link that key into the session keyring. This
behavior can interefere with subsequent mount attempts until the
key times out. The next request_key() call will get this negative key
even if the upcall would have worked the second time.
Fix this by having cifs.upcall negatively instantiate the key itself
with a 1s timeout and don't attach it to the session keyring.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit f760dd3f3128c846cdeab16cc52bbb5189427955)
Diffstat (limited to 'source3/libsmb/libsmb_setget.c')
0 files changed, 0 insertions, 0 deletions