replaced --with-gid/uid by --with-group/user
using named users, groups fixed capability dropping in pluto
This commit is contained in:
@@ -537,7 +537,7 @@ static bool open_socket(private_stroke_socket_t *this)
|
||||
return FALSE;
|
||||
}
|
||||
umask(old);
|
||||
if (chown(socket_addr.sun_path, IPSEC_UID, IPSEC_GID) != 0)
|
||||
if (chown(socket_addr.sun_path, charon->uid, charon->gid) != 0)
|
||||
{
|
||||
DBG1(DBG_CFG, "changing stroke socket permissions failed: %s",
|
||||
strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user