From b8dede30141cf87fb62aca918d04e411fac82946 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 28 Sep 2009 15:50:22 +0200 Subject: add utility call check_and_open_readonly Use this new utility call to ensure that the config file is safe to read from. --- server/util/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/util/util.h') 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__ */ -- cgit