X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fgssd%2Fgss_destroy_creds;fp=utils%2Fgssd%2Fgss_destroy_creds;h=666bdd91682ad761cbefe0d185a5e00587e4afc2;hp=0000000000000000000000000000000000000000;hb=f1bfe0916c04d93de7a4fae5315fff6e4ccac23f;hpb=981d25a37fe4a71eddd162672a658da223453985 diff --git a/utils/gssd/gss_destroy_creds b/utils/gssd/gss_destroy_creds new file mode 100644 index 0000000..666bdd9 --- /dev/null +++ b/utils/gssd/gss_destroy_creds @@ -0,0 +1,11 @@ +#!/bin/bash + +path=`mount|grep rpc_pipefs|head -1|awk '{ print $3 }'` + +if [ -z "$path" ]; then + echo "unable to find rpc_pipefs; is it mounted?" + exit 1 +fi; + +find "$path" -name 'krb5' -exec gss_clnt_send_err '{}' $* ';' +