summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-11-01 13:34:02 +0100
committerHans de Goede <hdegoede@redhat.com>2010-11-01 13:34:02 +0100
commitba0bb9e7fd64765b6ee3f2b9f72b35c8527f730a (patch)
treeed82cc44be90da872b8f80cb75228f1f64159036
parentba324d0f1fdee3e5f24618b4d590011007d417a2 (diff)
vdagentd: change socket name
Having a Unix Domain Socket directly under /tmp is a really bad idea (think symlink attacks). The standard solution for this is to create a subdir under /tmp. But since spice-vdagentd runs as root anyways we might just as well put it in another much safer place. So now the socket is: /var/run/spice-vdagentd/spice-vdagent-sock
-rw-r--r--vdagentd-proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagentd-proto.h b/vdagentd-proto.h
index 375b324..0f3c478 100644
--- a/vdagentd-proto.h
+++ b/vdagentd-proto.h
@@ -23,7 +23,7 @@
#ifndef __VDAGENTD_PROTO_H
#define __VDAGENTD_PROTO_H
-#define VDAGENTD_SOCKET "/tmp/spice-vdagent"
+#define VDAGENTD_SOCKET "/var/run/spice-vdagentd/spice-vdagent-sock"
enum {
VDAGENTD_GUEST_XORG_RESOLUTION, /* client -> daemon */