summaryrefslogtreecommitdiff
path: root/src/responder/common/negcache.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-04-22 16:26:56 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-02 19:33:56 +0200
commitb5afbc39c09baaef57b5300b636307e277c59d66 (patch)
treea5b4174241eadc11785a37a9400a38e7966364c3 /src/responder/common/negcache.h
parent1e72a17f6527d47968032fc928f489dad10705ea (diff)
downloadsssd-b5afbc39c09baaef57b5300b636307e277c59d66.tar.gz
sssd-b5afbc39c09baaef57b5300b636307e277c59d66.tar.bz2
sssd-b5afbc39c09baaef57b5300b636307e277c59d66.zip
Add sss_ncache_set_sid() and sss_ncache_check_sid()
Two new calls are added to allow to add SID based lookups to the negative cache.
Diffstat (limited to 'src/responder/common/negcache.h')
-rw-r--r--src/responder/common/negcache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/responder/common/negcache.h b/src/responder/common/negcache.h
index b2e6a7a9..0b7e00b0 100644
--- a/src/responder/common/negcache.h
+++ b/src/responder/common/negcache.h
@@ -36,6 +36,7 @@ int sss_ncache_check_netgr(struct sss_nc_ctx *ctx, int ttl,
const char *domain, const char *name);
int sss_ncache_check_uid(struct sss_nc_ctx *ctx, int ttl, uid_t uid);
int sss_ncache_check_gid(struct sss_nc_ctx *ctx, int ttl, gid_t gid);
+int sss_ncache_check_sid(struct sss_nc_ctx *ctx, int ttl, const char *sid);
int sss_ncache_check_service(struct sss_nc_ctx *ctx, int ttl,
struct sss_domain_info *dom,
@@ -58,6 +59,7 @@ int sss_ncache_set_netgr(struct sss_nc_ctx *ctx, bool permanent,
struct sss_domain_info *dom, const char *name);
int sss_ncache_set_uid(struct sss_nc_ctx *ctx, bool permanent, uid_t uid);
int sss_ncache_set_gid(struct sss_nc_ctx *ctx, bool permanent, gid_t gid);
+int sss_ncache_set_sid(struct sss_nc_ctx *ctx, bool permanent, const char *sid);
int sss_ncache_set_service_name(struct sss_nc_ctx *ctx, bool permanent,
struct sss_domain_info *dom,
const char *name, const char *proto);