Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#722 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, linux

Research direction

Start by reproducing the issue with --dev-bind /dev/steve /dev/steve, first with the existing device and then after the host recreates it through the shown udev rule. Trace how bubblewrap handles the device bind and permission state; done means the recreated device retains the intended steve:jobserver ownership and 660 mode inside the image.

Written by the indexing model from the issue text.

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.

Dominant language
C
Stars
8.9k
Forks
391
Avg merge
1d 32m
Merged PRs (30d)
7

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containers/bubblewrap

All issues in containers/bubblewrap

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.