diff options
author | Sumit Bose <sbose@redhat.com> | 2009-09-28 15:50:22 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-10-05 10:32:09 -0400 |
commit | b8dede30141cf87fb62aca918d04e411fac82946 (patch) | |
tree | 8a3eccfc11d96162d11e3fac165751fbcdc6f0b9 /server/util/util.h | |
parent | e3a794633b02411c3d3adc4443e98541f045f41a (diff) | |
download | sssd-b8dede30141cf87fb62aca918d04e411fac82946.tar.gz sssd-b8dede30141cf87fb62aca918d04e411fac82946.tar.bz2 sssd-b8dede30141cf87fb62aca918d04e411fac82946.zip |
add utility call check_and_open_readonly
Use this new utility call to ensure that the config file is safe
to read from.
Diffstat (limited to 'server/util/util.h')
-rw-r--r-- | server/util/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/util/util.h b/server/util/util.h index 0212df06..b7deb854 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -193,4 +193,8 @@ int sss_parse_name(TALLOC_CTX *memctx, /* from backup-file.c */ int backup_file(const char *src, int dbglvl); +/* from check_and_open.c */ +errno_t check_and_open_readonly(const char *filename, int *fd, const uid_t uid, + const gid_t gid, const mode_t mode); + #endif /* __SSSD_UTIL_H__ */ |