summaryrefslogtreecommitdiffstats
path: root/vdagentd.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-11-19 11:52:47 +0100
committerHans de Goede <hdegoede@redhat.com>2010-11-19 11:52:47 +0100
commit1fe607610ae2f7477d22784c8bf28453df25efbc (patch)
tree58511278363721346f670c1c1be6d2c1f0c6aea5 /vdagentd.c
parent1d9465f8822f3e241c8c22c862c873e37b49fb1b (diff)
downloadvd_agent-1fe607610ae2f7477d22784c8bf28453df25efbc.tar.gz
vd_agent-1fe607610ae2f7477d22784c8bf28453df25efbc.tar.xz
vd_agent-1fe607610ae2f7477d22784c8bf28453df25efbc.zip
Put the pid and log files into their own subdir
This makes it easier to write an selinux policy for spice-vdagent and allows for adding extra logfiles / sockets in the future without needing a policy change.
Diffstat (limited to 'vdagentd.c')
-rw-r--r--vdagentd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdagentd.c b/vdagentd.c
index 47ec963..0215c78 100644
--- a/vdagentd.c
+++ b/vdagentd.c
@@ -45,8 +45,8 @@ struct agent_data {
};
/* variables */
-static const char *logfilename = "/var/log/spice-vdagentd.log";
-static const char *pidfilename = "/var/run/spice-vdagentd.pid";
+static const char *logfilename = "/var/log/spice-vdagentd/spice-vdagentd.log";
+static const char *pidfilename = "/var/run/spice-vdagentd/spice-vdagentd.pid";
static const char *portdev = "/dev/virtio-ports/com.redhat.spice.0";
static const char *uinput_device = "/dev/uinput";
static int debug = 0;