From 8bae0a1ecf3fce3817a96f368f38200e115e25c6 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 28 Jul 2010 13:55:42 +0000 Subject: Change clvmd to communicate with lvm via a socket in /var/run/lvm. (mbroz) https://bugzilla.redhat.com/show_bug.cgi?id=614248 [CVE-2010-2526] --- daemons/clvmd/clvm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'daemons/clvmd/clvm.h') diff --git a/daemons/clvmd/clvm.h b/daemons/clvmd/clvm.h index 92f807f7..c9ea10c4 100644 --- a/daemons/clvmd/clvm.h +++ b/daemons/clvmd/clvm.h @@ -22,6 +22,8 @@ #ifndef _CLVM_H #define _CLVM_H +#include "configure.h" + struct clvm_header { uint8_t cmd; /* See below */ uint8_t flags; /* See below */ @@ -45,9 +47,8 @@ struct clvm_header { #define CLVMD_FLAG_SYSTEMLV 2 /* Data in system LV under my node name */ #define CLVMD_FLAG_NODEERRS 4 /* Reply has errors in node-specific portion */ -/* Name of the local socket to communicate between libclvm and clvmd */ -//static const char CLVMD_SOCKNAME[]="/var/run/clvmd"; -static const char CLVMD_SOCKNAME[] = "\0clvmd"; +/* Name of the local socket to communicate between lvm and clvmd */ +static const char CLVMD_SOCKNAME[]= DEFAULT_RUN_DIR "/clvmd.sock"; /* Internal commands & replies */ #define CLVMD_CMD_REPLY 1 -- cgit