diff options
author | Alasdair Kergon <agk@redhat.com> | 2010-07-28 13:55:42 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2010-07-28 13:55:42 +0000 |
commit | 8bae0a1ecf3fce3817a96f368f38200e115e25c6 (patch) | |
tree | 7f4355e56f6e7d6ceb103e0f21fe235ec1ca1e78 /daemons/clvmd/clvm.h | |
parent | 64f95b40ca93a053f088114624e32d83570c720f (diff) | |
download | lvm2-8bae0a1ecf3fce3817a96f368f38200e115e25c6.tar.gz lvm2-8bae0a1ecf3fce3817a96f368f38200e115e25c6.tar.xz lvm2-8bae0a1ecf3fce3817a96f368f38200e115e25c6.zip |
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]
Diffstat (limited to 'daemons/clvmd/clvm.h')
-rw-r--r-- | daemons/clvmd/clvm.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 |