File mode incorrectly assigned for device
Bug #1560752 reported by
Jorge Ventura
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Released
|
Undecided
|
Stéphane Graber |
Bug Description
The command:
lxc config device add cnt_name /dev/video0 unix-char gid 27 path=/dev/video0 mode=0660
The result is:
crw-r----- 1 root video video0
but should be
crw-rw---- 1 root video video0
Inside the container I can fix using chmod and the webcam works properly but not using lxc command.
To post a comment you must log in.
https:/ /github. com/lxc/ lxd/pull/ 1794/commits/ a67ecc162e488e9 6a1ee8eb1b26a3a e3aa56574a
Turns out that mknod respects the umask...