diff options
author | Theodore Ts'o | 2009-07-01 05:06:44 +0200 |
---|---|---|
committer | Theodore Ts'o | 2009-07-01 05:26:09 +0200 |
commit | 7e54fe51ae92fa1acb8b9226191519b28b87c00e (patch) | |
tree | e84bd2f1b127e54476114df293a1b6a7c1993b8e /shlibs/uuid/src/uuidd.h | |
parent | libuuid, uuidd: Avoid infinite loop while reading from the socket fd (diff) | |
download | kernel-qcow2-util-linux-7e54fe51ae92fa1acb8b9226191519b28b87c00e.tar.gz kernel-qcow2-util-linux-7e54fe51ae92fa1acb8b9226191519b28b87c00e.tar.xz kernel-qcow2-util-linux-7e54fe51ae92fa1acb8b9226191519b28b87c00e.zip |
libuuid: Don't run uuidd if it would fail due to permission problems
Some distributions don't like installing uuidd setuid or setgid. So
if the setuid or setigid bit is not set with uuidd, and the current
process does not have write access to the UUIDD work directory, don't
try running uuidd, since it won't work properly.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'shlibs/uuid/src/uuidd.h')
-rw-r--r-- | shlibs/uuid/src/uuidd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shlibs/uuid/src/uuidd.h b/shlibs/uuid/src/uuidd.h index c80723613..68ee0e5c6 100644 --- a/shlibs/uuid/src/uuidd.h +++ b/shlibs/uuid/src/uuidd.h @@ -35,8 +35,9 @@ #ifndef _UUID_UUIDD_H #define _UUID_UUIDD_H -#define UUIDD_SOCKET_PATH "/var/run/uuidd/request" -#define UUIDD_PIDFILE_PATH "/var/run/uuidd/uuidd.pid" +#define UUIDD_DIR "/var/run/uuidd" +#define UUIDD_SOCKET_PATH UUIDD_DIR "/request" +#define UUIDD_PIDFILE_PATH UUIDD_DIR "/uuidd.pid" #define UUIDD_PATH "/usr/sbin/uuidd" #define UUIDD_OP_GETPID 0 |