Re: [Hampshire] LVM device node permissions

Top Page
Author: Hugo Mills
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] LVM device node permissions

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57233100.hantslug.org.uk.21457': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Tue Nov 13 17:22:16 2007 GMT
gpg: using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
On Tue, Nov 13, 2007 at 05:17:55PM -0000, Bond, Peter wrote:
> >    I've looked at udev, but it doesn't get told about the creation of
> > device nodes in /dev/mapper (it gets told about /dev/dm-<n>, but
> > that's useless), so udev is not the solution.

>
> Bogged down with arguing with HP hw monitoring at the moment, so maybe I'm not reading things correctly, but what's the issue with using udev to control ownership?
>
> http://reactivated.net/writing_udev_rules.html#ownership


Precisely what I said above -- when the nodes are created, udev is
not informed, so there's no rules examined. It looks like lvm creates
the nodes itself, in userspace, rather than going through the kernel
or otherwise alerting udev.

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
  --- "He's a nutcase, you know. There's no getting away from it -- ---  
                     he'll end up with a knighthood"