1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-29 15:22:30 +03:00
lvm2/libdm
Milan Broz a2222288b5 Mitigate some warnings if running as non-root user.
LVM doesn't behave correctly if running as non-root user,
there is warning when it detects it.

Despite this, it produces many error messages, saying nothing.
See https://bugzilla.redhat.com/show_bug.cgi?id=620571

This patch fixes two things:
1) Removes eror message from device_is_usable() which has no
information value anyway (real warning is printed inside it).

2) it fixes device-mapper initialization, if we support
core dm module autoload and device node is present, it should
fail early and not try recreate existing and correct node.
(non-root == permission denied here)

N.B. In future code should support user roles, some more
drastic checks in code are probably contraproductive now.
2011-03-18 12:17:57 +00:00
..
datastruct Use void pointer instead of char for binary key 2011-03-10 12:48:40 +00:00
ioctl Mitigate some warnings if running as non-root user. 2011-03-18 12:17:57 +00:00
misc Suport DM_SECURE_DATA_FLAG. 2011-02-04 16:08:11 +00:00
mm Keep pool name also for pool-fast 2011-03-10 14:49:01 +00:00
regex Use const char* const * for dm_regex_create() 2010-12-20 13:23:11 +00:00
.exported_symbols Generate liblvm2app and libdevmapper exported symbols from header files. 2010-06-25 18:17:38 +00:00
libdevmapper.h Use void pointer instead of char for binary key 2011-03-10 12:48:40 +00:00
libdevmapper.pc.in Switch to use Requires.private for devmapper.pc and lvm2app.pc 2010-05-11 08:54:11 +00:00
libdm-common.c Lower severity of selabel_lookup and matchpathcon failure to log_debug. 2011-03-03 13:05:40 +00:00
libdm-common.h Add new dm_prepare_selinux_context fn to libdevmapper and use it throughout. 2010-12-13 10:43:56 +00:00
libdm-deptree.c Fix dm_udev_wait calls in dmsetup to occur before readahead display not after. 2011-03-02 00:29:57 +00:00
libdm-file.c Implement dmeventd -R, allowing dmeventd to be restarted without losing 2010-10-20 15:12:12 +00:00
libdm-report.c Handle decimal digits with --units instead of ignoring them silently. 2011-02-18 23:09:55 +00:00
libdm-string.c Move va_end(ap) so we do not leave with return -1 without calling it. 2010-11-23 15:00:52 +00:00
Makefile.in Clean generated files .exported_symbols_generated, example.conf for distclean. 2010-08-03 13:00:45 +00:00