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

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -