summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_sudo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/sysdb_sudo.h')
-rw-r--r--src/db/sysdb_sudo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h
index a8e2f891..60643451 100644
--- a/src/db/sysdb_sudo.h
+++ b/src/db/sysdb_sudo.h
@@ -30,6 +30,7 @@
/* attribute of SUDORULE_SUBDIR
* should be true if we have downloaded all rules atleast once */
#define SYSDB_SUDO_AT_REFRESHED "refreshed"
+#define SYSDB_SUDO_AT_LAST_FULL_REFRESH "sudoLastFullRefreshTime"
/* sysdb attributes */
#define SYSDB_SUDO_CACHE_AT_OC "sudoRule"
@@ -81,6 +82,9 @@ sysdb_save_sudorule(struct sysdb_ctx *sysdb_ctx,
const char *rule_name,
struct sysdb_attrs *attrs);
+errno_t sysdb_sudo_set_last_full_refresh(struct sysdb_ctx *sysdb, time_t value);
+errno_t sysdb_sudo_get_last_full_refresh(struct sysdb_ctx *sysdb, time_t *value);
+
errno_t sysdb_sudo_set_refreshed(struct sysdb_ctx *sysdb,
bool refreshed);