Displaying 2 results from an estimated 2 matches for "control_socket".
2007 Oct 18
0
[PATCH] Use a control socket directory to restrict access
...c | 67 +++++++++++++++++++++++++++++++++--------
src/tincd.c | 2 +-
4 files changed, 120 insertions(+), 32 deletions(-)
diff --git a/src/control.c b/src/control.c
index a795843..bcf8861 100644
--- a/src/control.c
+++ b/src/control.c
@@ -191,6 +191,7 @@ static void handle_new_control_socket(int fd, short events, void *data) {
memset(&greeting, 0, sizeof greeting);
greeting.version = TINC_CTL_VERSION_CURRENT;
+ greeting.pid = getpid();
if(bufferevent_write(ev, &greeting, sizeof greeting) == -1) {
logger(LOG_ERR,
_("Cannot send greeting for new control con...
2007 Oct 18
0
[PATCH] Use credentials and permissions on control socket where available
...env random select strdup strerror strsignal strtol system unsetenv vsyslog writev],
[], [], [#include "have.h"]
)
AC_FUNC_MALLOC
diff --git a/src/control.c b/src/control.c
index a795843..4454126 100644
--- a/src/control.c
+++ b/src/control.c
@@ -191,6 +191,7 @@ static void handle_new_control_socket(int fd, short events, void *data) {
memset(&greeting, 0, sizeof greeting);
greeting.version = TINC_CTL_VERSION_CURRENT;
+ greeting.pid = getpid();
if(bufferevent_write(ev, &greeting, sizeof greeting) == -1) {
logger(LOG_ERR,
_("Cannot send greeting for new control con...