Capabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bernd Juraschek wrote:
> Hello,
> 
> I've problems with my statusleds plugin. If vdr is not running as root
> all capabilities are dropped - except the one for setting the system
> time.
> 
> My plugin wants to set the keyboard leds with the ioctl KDSETLED on
> /dev/console. Unfortunately this ioctl requires one more capability.
> 
> Is there any way to get this capability? Should we extend the plugin
> interface with a possibility for the plugins to specify needed caps?
> 

Why not simply document this fact in the installation guide:
"The plugin must have write access to /dev/console."
This is similar to the dvd or vcd plugin which need read/write access to
/dev/dvd resp. /dev/cdrom.

On my machine, I added the vdr user to the cdrom group. For
/dev/console, this might be a bit trickier: I would have to add vdr to
group tty AND give /dev/console rw-permissions for the group, but that
should suffice.

I don't know much about linux capabilities, but my feeling is, that they
are meant for things not represented by devices (which use the simpler
file-permissions model).

Just my 2 cents,
-- 
Patrick Cernko | mailto:errror@xxxxxxxxxx | http://www.errror.org

"Wer HTML postet oder gepostetes HTML quotet oder sich gepostetes oder
gequotetes HTML beschafft, um es in Verkehr zu bringen, wird geplonkt."
(anonym)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20070218/b5db9707/signature-0001.pgp

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux