Refactored heavily #ifdefd capability code to its own libstrongswan class
This commit is contained in:
@@ -84,7 +84,8 @@ static bool open_socket(private_duplicheck_notify_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 duplicheck socket permissions failed: %s",
|
||||
strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user