containers / containers/bubblewrap

chanegd permissions after re-creating a char device under /dev

Open
#722 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.7k
Forks
386
Avg merge
3d 17h
Merged PRs (30d)
11

Description

A
```
--dev-bind /dev/steve /dev/steve
```
gives for an existing device _/dev/steve_ the right permissions within an image:
```
crw-rw---- 1 steve jobserver 247, 0 Dec 20 09:34 /dev/steve
```
But if the jobserver at the host is restarted, then the device will be recreated there. The udev rules
```
# cat /etc/udev/rules.d/99-steve.rules
ACTION=="add", ENV{DEVNAME}=="/dev/steve", OWNER="steve", GROUP="jobserver", MODE="660"
```
ensures right perms after restart at the host. But for bubblewraped images the permissions within the image are set to user _root_ now.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.