summaryrefslogtreecommitdiffstats
path: root/utils/gssd/gss_util.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2017-11-16 15:39:01 -0500
committerSimo Sorce <simo@redhat.com>2017-11-16 16:28:28 -0500
commit799c0303440e66004b4517e66d7f2852cfd313e4 (patch)
tree294e1eb2acf0dfe3f043d5be13f6de28e16e4f48 /utils/gssd/gss_util.h
parent8d9bf479441d9d7a44a86b69026a7e9d431d3ade (diff)
downloadnfs-utils-fixrootccache.tar.gz
nfs-utils-fixrootccache.tar.xz
nfs-utils-fixrootccache.zip
Avoid clobbering root's ccache if possiblefixrootccache
If the gssapi library is modern enough, store the ccache in a process scoped keyring by default. This will avoid clobbering root's default ccache, and keep the creds from littering the filesystem. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'utils/gssd/gss_util.h')
-rw-r--r--utils/gssd/gss_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/gssd/gss_util.h b/utils/gssd/gss_util.h
index aa9f778..24fad94 100644
--- a/utils/gssd/gss_util.h
+++ b/utils/gssd/gss_util.h
@@ -32,12 +32,13 @@
#define _GSS_UTIL_H_
#include <stdlib.h>
+#include <stdbool.h>
#include <rpc/rpc.h>
#include "write_bytes.h"
extern gss_cred_id_t gssd_creds;
-int gssd_acquire_cred(char *server_name, const gss_OID oid);
+int gssd_acquire_cred(char *server_name, bool machine, const gss_OID oid);
void pgsserr(char *msg, u_int32_t maj_stat, u_int32_t min_stat,
const gss_OID mech);
int gssd_check_mechs(void);