diff options
author | Martin Willi <martin@revosec.ch> | 2010-10-20 12:30:22 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-10-20 14:55:26 +0200 |
commit | 185c2669d58eabc46a01e758d842d62396e3eedf (patch) | |
tree | d8e9f19e990a6f132051ca78dba12eb08d3c84ff /src | |
parent | 384b69d964fdaf47af8e2e3ce23ba4b330dbca95 (diff) | |
download | strongswan-185c2669d58eabc46a01e758d842d62396e3eedf.tar.bz2 strongswan-185c2669d58eabc46a01e758d842d62396e3eedf.tar.xz |
Set ownership of all HA ClusterIP control files
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/plugins/ha/ha_kernel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcharon/plugins/ha/ha_kernel.c b/src/libcharon/plugins/ha/ha_kernel.c index 10a63453a..56bdbf454 100644 --- a/src/libcharon/plugins/ha/ha_kernel.c +++ b/src/libcharon/plugins/ha/ha_kernel.c @@ -216,6 +216,11 @@ static void disable_all(private_ha_kernel_t *this) enumerator = enumerator_create_directory(CLUSTERIP_DIR); while (enumerator->enumerate(enumerator, NULL, &file, NULL)) { + if (chown(file, charon->uid, charon->gid) != 0) + { + DBG1(DBG_CFG, "changing ClusterIP permissions failed: %s", + strerror(errno)); + } active = get_active(this, file); for (i = 1; i <= this->count; i++) { |