summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_sudo.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-01-17 15:33:02 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-01-17 11:38:16 -0500
commit1a542b3698d8c42cf075b722f8838f106eb09fcc (patch)
tree62c399da0dc3ba08e2bf6194ff12de60004c429b /src/db/sysdb_sudo.h
parent6961025be43141b1d1ca4a6a046ce8f3ac94f508 (diff)
downloadsssd_unused-1a542b3698d8c42cf075b722f8838f106eb09fcc.tar.gz
sssd_unused-1a542b3698d8c42cf075b722f8838f106eb09fcc.tar.xz
sssd_unused-1a542b3698d8c42cf075b722f8838f106eb09fcc.zip
SUDO Integration - functions for manipulating with 'refreshed' attribute
https://fedorahosted.org/sssd/ticket/1110
Diffstat (limited to 'src/db/sysdb_sudo.h')
-rw-r--r--src/db/sysdb_sudo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h
index 70ee1f4c..67f9e912 100644
--- a/src/db/sysdb_sudo.h
+++ b/src/db/sysdb_sudo.h
@@ -27,6 +27,10 @@
* b/c it's not name-service-switch data */
#define SUDORULE_SUBDIR "sudorules"
+/* attribute of SUDORULE_SUBDIR
+ * should be true if we have downloaded all rules atleast once */
+#define SYSDB_SUDO_AT_REFRESHED "refreshed"
+
/* sysdb attributes */
#define SYSDB_SUDO_CACHE_AT_OC "sudoRule"
#define SYSDB_SUDO_CACHE_AT_CN "cn"
@@ -66,4 +70,10 @@ errno_t sysdb_purge_sudorule_subtree(struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
const char *filter);
+errno_t sysdb_sudo_set_refreshed(struct sysdb_ctx *sysdb,
+ bool refreshed);
+
+errno_t sysdb_sudo_get_refreshed(struct sysdb_ctx *sysdb,
+ bool *refreshed);
+
#endif /* _SYSDB_SUDO_H_ */