View previous topic :: View next topic |
Author |
Message |
agentsmith83 n00b
Joined: 15 Sep 2011 Posts: 12 Location: RU,Moscow
|
Posted: Sat Feb 02, 2013 7:40 am Post subject: udev 197. Failed to apply group to a node. |
|
|
Hello.
I use virtual box with virtual hdd on encrypted LUKS label.
I should to change device goup to 'vboxusers' to grant access for virtual box users.
For previous udev I used this rule to change device group
SUBSYSTEM=="block", KERNEL=="dm-*", ENV{DM_NAME}=="ovbx0", GROUP="vboxusers"
and it worked well.
But now this rule have no effect.
here is output for device info:
[11:33:27] root@zeus /etc/udev/rules.d# udevadm info --name /dev/mapper/ovbx0
P: /devices/virtual/block/dm-16
N: dm-16
S: disk/by-id/dm-name-ovbx0
S: disk/by-id/dm-uuid-CRYPT-LUKS1-55c868a84f074b1799b37189ade5b8c8-ovbx0
E: DEVLINKS=/dev/disk/by-id/dm-name-ovbx0 /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-55c868a84f074b1799b37189ade5b8c8-ovbx0
E: DEVNAME=/dev/dm-16
E: DEVPATH=/devices/virtual/block/dm-16
E: DEVTYPE=disk
E: DM_NAME=ovbx0
E: DM_SUSPENDED=0
E: DM_UDEV_DISABLE_DM_RULES_FLAG=1
E: DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG=1
E: DM_UDEV_PRIMARY_SOURCE_FLAG=1
E: DM_UDEV_RULES_VSN=2
E: DM_UUID=CRYPT-LUKS1-55c868a84f074b1799b37189ade5b8c8-ovbx0
E: ID_PART_TABLE_TYPE=dos
E: MAJOR=254
E: MINOR=16
E: SUBSYSTEM=block
E: UDISKS_DM_TARGETS_COUNT=1
E: UDISKS_DM_TARGETS_LENGTH=41938944
E: UDISKS_DM_TARGETS_START=0
E: UDISKS_DM_TARGETS_TYPE=crypt
E: UDISKS_PARTITION_TABLE=1
E: UDISKS_PARTITION_TABLE_COUNT=1
E: UDISKS_PARTITION_TABLE_SCHEME=mbr
E: UDISKS_PRESENTATION_NOPOLICY=1
E: USEC_INITIALIZED=96876029
here is part of output for udeadm test
LINK 'disk/by-id/dm-name-ovbx0' /lib64/udev/rules.d/13-dm-disk.rules:17
LINK 'disk/by-id/dm-uuid-CRYPT-LUKS1-55c868a84f074b1799b37189ade5b8c8-ovbx0' /lib64/udev/rules.d/13-dm-disk.rules:18
IMPORT builtin 'blkid' /lib64/udev/rules.d/13-dm-disk.rules:22
probe /dev/dm-16 raid offset=0
GROUP 6 /lib64/udev/rules.d/50-udev-default.rules:57
GROUP 992 /etc/udev/rules.d/51-vboxdrv.rules:1
handling device node '/dev/dm-16', devnum=b254:16, mode=0660, uid=0, gid=992
set permissions /dev/dm-16, 060660, uid=0, gid=992
preserve already existing symlink '/dev/block/254:16' to '../dm-16'
found 'b254:16' claiming '/run/udev/links/\x2fdisk\x2fby-id\x2fdm-name-ovbx0'
creating link '/dev/disk/by-id/dm-name-ovbx0' to '/dev/dm-16'
preserve already existing symlink '/dev/disk/by-id/dm-name-ovbx0' to '../../dm-16'
found 'b254:16' claiming '/run/udev/links/\x2fdisk\x2fby-id\x2fdm-uuid-CRYPT-LUKS1-55c868a84f074b1799b37189ade5b8c8-ovbx0'
creating link '/dev/disk/by-id/dm-uuid-CRYPT-LUKS1-55c868a84f074b1799b37189ade5b8c8-ovbx0' to '/dev/dm-16' |
|
Back to top |
|
|
agentsmith83 n00b
Joined: 15 Sep 2011 Posts: 12 Location: RU,Moscow
|
Posted: Sat Feb 02, 2013 11:12 am Post subject: |
|
|
I turnd on udev debug and got this error string in log
Quote: | error: /dev/dm-16: No such file or directory |
|
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Sat Feb 02, 2013 12:07 pm Post subject: |
|
|
Sorry but I have to ask something simple, is USE="openrc" enabled in sys-fs/udev and do you see both udev and udev-mount in `rc-update show` output in the sysinit runlevel? |
|
Back to top |
|
|
agentsmith83 n00b
Joined: 15 Sep 2011 Posts: 12 Location: RU,Moscow
|
Posted: Sun Feb 03, 2013 5:41 am Post subject: |
|
|
Hello,
Openrc USE flag is enabled in sys-fs/udev.
Here is my output for rc-update show
Code: | [09:37:11] root@zeus /run# rc-update show | grep sysinit
devfs | sysinit
dmesg | sysinit
sysfs | sysinit
udev | sysinit
udev-mount | sysinit |
|
|
Back to top |
|
|
agentsmith83 n00b
Joined: 15 Sep 2011 Posts: 12 Location: RU,Moscow
|
Posted: Sun Feb 03, 2013 3:19 pm Post subject: |
|
|
I also noticed that all devices /dev/dm-* have permissions 660 root:disk.
And only device created with dmcrypt have 600 root:root
And in dmesg I see record
Code: | set permissions /dev/dm-16, 060660, uid=0, gid=992 | where 992 = vboxusers
The same issue have Red Hat users
https://bugzilla.redhat.com/show_bug.cgi?id=903716 |
|
Back to top |
|
|
|