summaryrefslogtreecommitdiffstats
path: root/server/util/util.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-09-28 15:50:22 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-10-05 10:32:09 -0400
commitb8dede30141cf87fb62aca918d04e411fac82946 (patch)
tree8a3eccfc11d96162d11e3fac165751fbcdc6f0b9 /server/util/util.h
parente3a794633b02411c3d3adc4443e98541f045f41a (diff)
downloadsssd-b8dede30141cf87fb62aca918d04e411fac82946.tar.gz
sssd-b8dede30141cf87fb62aca918d04e411fac82946.tar.xz
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/util/util.h b/server/util/util.h
index 0212df062..b7deb8540 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__ */