changing UID/GID after startup of pluto/charon
added --with-uid/--with-gid configure option
This commit is contained in:
@@ -339,7 +339,7 @@ static DBusHandlerResult signal_handler(DBusConnection *con, DBusMessage *msg,
|
||||
static void dispatch(private_dbus_interface_t *this)
|
||||
{
|
||||
/* drop threads capabilities */
|
||||
charon->drop_capabilities(charon, FALSE, FALSE);
|
||||
charon->drop_capabilities(charon, TRUE, FALSE, FALSE);
|
||||
|
||||
while (dbus_connection_read_write_dispatch(this->conn, -1))
|
||||
{
|
||||
|
||||
@@ -1529,7 +1529,7 @@ static void stroke_receive(private_stroke_interface_t *this)
|
||||
int strokefd;
|
||||
|
||||
/* drop threads capabilities */
|
||||
charon->drop_capabilities(charon, FALSE, FALSE);
|
||||
charon->drop_capabilities(charon, TRUE, FALSE, FALSE);
|
||||
|
||||
/* ignore sigpipe. writing over the pipe back to the console
|
||||
* only fails if SIGPIPE is ignored. */
|
||||
|
||||
Reference in New Issue
Block a user