lxc - Linux container can not access device node -


i used following configuration bind lirc0 container.

lxc.mount.entry = /dev/lirc0 dev/lirc0 none bind,optional,create=file 

the attribute of /dev/lirc0 in host follows.

crw-------    1 root root  251,   0 jul 16 20:00 /dev/lirc0 

and use lxc-attach go container. attribute of /dev/lirc0 in container same host

crw-------    1 root root  251,   0 jul 16 20:00 /dev/lirc0 

but /dev/lirc0 can't open. error "operation not permitted" , i'm supervisor(root) in container.

how can privilege access /dev/lirc0 in container?

you need set linux capabilities on binary running.


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -