Hello,
I am calling lvcreate from a setuid-binary, which internally calls
setreuid(), so that not only effective and saved UIDs, but also the real
UID is set to 0. From _nonroot_warning() in lvmcmdline.c I see that LVM
command line tools expect that.
Unfortunately - though these UIDs are all set to 0 - lvcreate still does
not work for me. That is, it does work when I call my setuid-binary as a
non-root user from the command line, but it does not work when I call my
setuid-binary from PAM module pam_exec - and that is what I need my
program for. I let my program send lvcreate output to a file and that
file has the following content:
device-mapper: version ioctl on failed: Permission denied
Incompatible libdevmapper 1.02.137 (2016-11-30) and kernel driver
(unknown version).
striped: Required device-mapper target(s) not detected in your kernel.
Run `lvcreate --help' for more information.
What might be the problem here so that lvcreate gives these errors
though all UIDs are 0?
Regards
Christoph
_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/