Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VHBA udev rules & cdemu&Co...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
CaptainBlood
l33t
l33t


Joined: 24 Jan 2010
Posts: 821

PostPosted: Mon Sep 04, 2017 10:59 pm    Post subject: VHBA udev rules & cdemu&Co... Reply with quote

Hi,
Something seemed wrong when gcdemu was 1st installed, because to have it working I had to push a rule in /etc/udev/rules.d. i.e. to allow cdemu group against /dev/vhba_ctl.

After stable upgrade, it seems like this rule is gone and all I can see is
Code:
/lib/udev/rules.d/69-vhba.rules:KERNEL=="vhba_ctl", SUBSYSTEM=="misc", TAG+="uaccess"


New stable vhba doesn't show
Code:
Log: postinst
Don't forget to add your user to the cdemu group if you want to
be able to use virtual cdemu devices.
anymore. So should cdemu group be deleted???

But the main question is: Since it doesn't work out of the upgrade box what is the correct way to have it working?

Restoring my udev rule for vhba? (This is what I did for a fix, but I'd rather like things to be as right as possible.)

How is it supposted to work from
Code:
KERNEL=="vhba_ctl", SUBSYSTEM=="misc", TAG+="uaccess"
to user:users profile, or even user:cdemu?

Maybe out of scope: eudev here, not systemd.

Thanks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6193

PostPosted: Wed Sep 27, 2017 12:44 pm    Post subject: Reply with quote

Thanks for the heads up.

Personally, I'm not sure how tightly 'uaccess' tag is bound with systemd, given that technically it's an udev builtin.

For quite awhile instead of that main repo group rule, I've been using following (obviously combined with udev-acl (from consolekit))
Code:

KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="udev-acl"
KERNEL=="vhba_ctl", TEST=="/var/run/ConsoleKit/database", RUN+="udev-acl --action=\$env{ACTION} --device=\$env{DEVNAME}"


There's a bit of redundancy there, but it worked reasonably well. No idea, if uaccess can be used for something similar outside systemd.

PS: to clarify, while I was leaving the GROUP bit, I never bothered to add my user to cdemu group - with these rules, things worked as with any normal removable drive.
Back to top
View user's profile Send private message
cameta
Veteran
Veteran


Joined: 04 Aug 2004
Posts: 1105

PostPosted: Sat Sep 30, 2017 7:52 am    Post subject: Reply with quote

With the new stable vhba I can't start the cdemu-daemon

Code:
 uname -r
4.12.12-gentoo

Code:
cdemu-daemon
Starting CDEmu daemon with following parameters:
 - num devices: 1
 - control device: /dev/vhba_ctl
 - audio driver: null
 - bus type: session

cdemu0: Kernel I/O: failed to open control device /dev/vhba_ctl: Permission denied!With the
cdemu: Daemon: failed to start device #0!
cdemu: Daemon: failed to create device!
Daemon initialization and start failed!

Only the user root can read and write the /dev/vhba_ctl .
_________________
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Back to top
View user's profile Send private message
CaptainBlood
l33t
l33t


Joined: 24 Jan 2010
Posts: 821

PostPosted: Sat Sep 30, 2017 9:47 am    Post subject: Reply with quote

Here:
Code:
cat  /etc/udev/rules.d/60-vhba.rules
KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu"
Code:
grep cdemu /etc/group
cdemu:x:981:<USERNAME>
which may work without acl.
Thks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
cameta
Veteran
Veteran


Joined: 04 Aug 2004
Posts: 1105

PostPosted: Sat Sep 30, 2017 12:37 pm    Post subject: Reply with quote

Thank You very much
Code:
grep cdemu /etc/group
cdemu:x:981:<USERNAME>

I have done it this way
Code:
gpasswd -a username cdemu

I think that It would be necessary to open a bug for the ebuild.
_________________
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Back to top
View user's profile Send private message
Ambrevar
n00b
n00b


Joined: 11 Jul 2017
Posts: 11

PostPosted: Sat Nov 25, 2017 3:37 pm    Post subject: Reply with quote

I ran into the same issue and the aforementioned fix works.

Has anyone reported the issue?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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