Whamcloud - gitweb
libuuid: Don't run uuidd if it would fail due to permission problems
authorTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jul 2009 02:36:28 +0000 (22:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jul 2009 02:36:28 +0000 (22:36 -0400)
commit3381a63c54f2221e3742211df39c5e2ee13d16cc
tree0ce4995d2a4422a83fc49a1e842a7a113d17f470
parent6013bbf596fe7fc20e53d5c7fb5cc37e48cc0136
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>
lib/uuid/gen_uuid.c
lib/uuid/uuidd.h