diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-05-07 13:48:45 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-29 11:37:17 -0400 |
commit | 44749ce0c1fee9babee80060fa0db99eebb2ab51 (patch) | |
tree | 36a1586da70da168cd6e6a8ef6fff299fbad4a63 /src/db/sysdb_sudo.h | |
parent | 80357fbba7e8251c85aa884749f275eed28eb4eb (diff) | |
download | sssd-44749ce0c1fee9babee80060fa0db99eebb2ab51.tar.gz sssd-44749ce0c1fee9babee80060fa0db99eebb2ab51.tar.xz sssd-44749ce0c1fee9babee80060fa0db99eebb2ab51.zip |
sysdb: add getter/setter for last sudo full refresh time
Diffstat (limited to 'src/db/sysdb_sudo.h')
-rw-r--r-- | src/db/sysdb_sudo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h index a8e2f8910..606434517 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); |