diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-21 16:16:24 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-27 09:02:01 -0500 |
commit | 91034cafa31fcd8a625e7c8ad35029132ac40970 (patch) | |
tree | a443464bd800cfbac8bd811dc5a46db63cf9c047 /src/responder/common/negcache.h | |
parent | 6748486d61680426e8739bb5e7db7dd8409ef44c (diff) | |
download | sssd-91034cafa31fcd8a625e7c8ad35029132ac40970.tar.gz sssd-91034cafa31fcd8a625e7c8ad35029132ac40970.tar.xz sssd-91034cafa31fcd8a625e7c8ad35029132ac40970.zip |
NSS: Add negative cache routines for services
Diffstat (limited to 'src/responder/common/negcache.h')
-rw-r--r-- | src/responder/common/negcache.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/responder/common/negcache.h b/src/responder/common/negcache.h index 72b99c969..74f7ff344 100644 --- a/src/responder/common/negcache.h +++ b/src/responder/common/negcache.h @@ -37,6 +37,15 @@ int sss_ncache_check_netgr(struct sss_nc_ctx *ctx, int ttl, 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_service(struct sss_nc_ctx *ctx, int ttl, + struct sss_domain_info *dom, + const char *name, + const char *proto); +int sss_ncache_check_service_port(struct sss_nc_ctx *ctx, int ttl, + struct sss_domain_info *dom, + uint16_t port, + const char *proto); + /* add a new neg-cache entry setting the timestamp to "now" unless * "permanent" is set to true, in which case the timestamps is set to 0 * and the negative cache never expires (used to permanently filter out @@ -49,6 +58,12 @@ 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_service_name(struct sss_nc_ctx *ctx, bool permanent, + struct sss_domain_info *dom, + const char *name, const char *proto); +int sss_ncache_set_service_port(struct sss_nc_ctx *ctx, bool permanent, + struct sss_domain_info *dom, + uint16_t port, const char *proto); int sss_ncache_reset_permament(struct sss_nc_ctx *ctx); |