Mount Access Removed from Next Generation Hardware
See original GitHub issueDescribe the issue you are experiencing
The changes which deprecated access method devices:[“remote:local:rw”] in favor of devices:[“remote”], appear to have removed the ability to mount a drive without disabling protection mode.
I found a related pull here. https://github.com/home-assistant/supervisor/pull/2429#issue-553605434
In the event a user wishes to mount a drive, there certainly must be a way to do so from an addon without disabling protection mode.
What is the used version of the Supervisor?
supervisor-2021.02.06
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
What is the version of your installed operating system?
5.11
What version of Home Assistant Core is installed?
2021.02.03
Steps to reproduce the issue
- Create and add-on with
SYS_ADMIN
permission - Add /dev/sda1 to config devices (replace with mmcblk0p1 if required)
- Disable AppArmor, or add permissions to /dev/sda1
- Start the addon
docker exec -it .... bash
into the addon- Execute
mkdir /tmp/1; mount /dev/sda1 /tmp/1;
- Observe error message “are you root?”
Under old device, step 7 executes silently. Under next generation hardware, it fails.
Anything in the Supervisor logs that might be useful for us?
# Put your logs below this line
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Nice idea with AppArmor patching. Would love to see an PR for that. Anyway the only bug is describe above. Will look in the next weeks into a fix 👍
Parsing add-ons AppArmor to determine permissions. I did some initial work to lay out the initial creation here. https://community.home-assistant.io/t/add-on-permissions-system-coming-soon/282544 @pvizeli