Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev 197. Failed to apply group to a node.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
agentsmith83
n00b
n00b


Joined: 15 Sep 2011
Posts: 11
Location: RU,Moscow

PostPosted: Sat Feb 02, 2013 7:40 am    Post subject: udev 197. Failed to apply group to a node. Reply with quote

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
View user's profile Send private message
agentsmith83
n00b
n00b


Joined: 15 Sep 2011
Posts: 11
Location: RU,Moscow

PostPosted: Sat Feb 02, 2013 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2000
Location: Finland

PostPosted: Sat Feb 02, 2013 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
agentsmith83
n00b
n00b


Joined: 15 Sep 2011
Posts: 11
Location: RU,Moscow

PostPosted: Sun Feb 03, 2013 5:41 am    Post subject: Reply with quote

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
View user's profile Send private message
agentsmith83
n00b
n00b


Joined: 15 Sep 2011
Posts: 11
Location: RU,Moscow

PostPosted: Sun Feb 03, 2013 3:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum