Refactored heavily #ifdefd capability code to its own libstrongswan class
This commit is contained in:
@@ -77,7 +77,8 @@ static bool open_socket(private_whitelist_control_t *this)
|
||||
return FALSE;
|
||||
}
|
||||
umask(old);
|
||||
if (chown(addr.sun_path, charon->uid, charon->gid) != 0)
|
||||
if (chown(addr.sun_path, charon->caps->get_uid(charon->caps),
|
||||
charon->caps->get_gid(charon->caps)) != 0)
|
||||
{
|
||||
DBG1(DBG_CFG, "changing whitelist socket permissions failed: %s",
|
||||
strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user