diff options
author | Sumit Bose <sbose@redhat.com> | 2010-02-16 15:53:56 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-23 16:16:23 -0500 |
commit | 978bea5902ece9b9f01d1d6525dbe0889a410ffc (patch) | |
tree | d83a94851cb6e3fe10fdbfcee1757190c15ab4eb /src/confdb | |
parent | e0bb119bdc1549d731f371202428c0cb667d3388 (diff) | |
download | sssd-978bea5902ece9b9f01d1d6525dbe0889a410ffc.tar.gz sssd-978bea5902ece9b9f01d1d6525dbe0889a410ffc.tar.bz2 sssd-978bea5902ece9b9f01d1d6525dbe0889a410ffc.zip |
Check and set permissions on SBUS sockets
Diffstat (limited to 'src/confdb')
-rw-r--r-- | src/confdb/confdb_setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/confdb/confdb_setup.c b/src/confdb/confdb_setup.c index 3c10c06c..77cd5f93 100644 --- a/src/confdb/confdb_setup.c +++ b/src/confdb/confdb_setup.c @@ -285,7 +285,8 @@ int confdb_init_db(const char *config_file, struct confdb_ctx *cdb) tmp_ctx = talloc_new(cdb); if (tmp_ctx == NULL) return ENOMEM; - ret = check_and_open_readonly(config_file, &fd, 0, 0, (S_IRUSR|S_IWUSR)); + ret = check_and_open_readonly(config_file, &fd, 0, 0, (S_IRUSR|S_IWUSR), + CHECK_REG); if (ret != EOK) { DEBUG(1, ("Permission check on config file failed.\n")); talloc_zfree(tmp_ctx); |