diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-29 16:30:39 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-07-07 10:29:52 +0200 |
commit | 6d66c2c465861ff2558f2574eddf8315628ccc6d (patch) | |
tree | 3fef24bc447043e6a75ec2612e5155baeda1f444 /src/db/sysdb.h | |
parent | ebbeac5c6b8b87ab478ee5a04ec48fbbba0c9efc (diff) | |
download | sssd-6d66c2c465861ff2558f2574eddf8315628ccc6d.tar.gz sssd-6d66c2c465861ff2558f2574eddf8315628ccc6d.tar.xz sssd-6d66c2c465861ff2558f2574eddf8315628ccc6d.zip |
SYSDB: Allow passing a context to sysdb upgrade functions
We decide on whether to upgrade or not based on a pointer value, not a
boolean. This pointer points to a structure that the upgrade invoker
(typically the monitor) can use to fill auxilary data the sysdb upgrade
has no means of instantiating.
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index b881310bf..2fa97c2f5 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -616,10 +616,15 @@ int sysdb_init(TALLOC_CTX *mem_ctx, struct sss_domain_info *domains); /* Same as sysdb_init, but additionally allows to change - * file ownership of the sysdb databases. */ + * file ownership of the sysdb databases and allow the + * upgrade via passing a context. */ +struct sysdb_upgrade_ctx { + int unused; +}; + int sysdb_init_ext(TALLOC_CTX *mem_ctx, struct sss_domain_info *domains, - bool allow_upgrade, + struct sysdb_upgrade_ctx *upgrade_ctx, bool chown_dbfile, uid_t uid, gid_t gid); |