• Jeff Layton's avatar
    sunrpc: parse and return errors reported by gssd · dc5ddce9
    Jeff Layton authored
    The kernel currently ignores any error code sent by gssd and always
    considers it to be -EACCES. In order to better handle the situation of
    an expired KRB5 TGT, the kernel needs to be able to parse and deal with
    the errors that gssd sends. Aside from -EACCES the only error we care
    about is -EKEYEXPIRED, which we're using to indicate that the upper
    layers should retry the call a little later.
    
    To maintain backward compatibility with older gssd's, any error other
    than -EKEYEXPIRED is interpreted as -EACCES.
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    dc5ddce9
auth_gss.c 40.4 KB