mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Mask folder /dev/bus/usb RW (#2555)
This commit is contained in:
parent
f647fd6fea
commit
341833fd8f
@ -319,6 +319,10 @@ class DockerAddon(DockerInterface):
|
|||||||
if self.addon.with_udev:
|
if self.addon.with_udev:
|
||||||
volumes.update({"/run/udev": {"bind": "/run/udev", "mode": "ro"}})
|
volumes.update({"/run/udev": {"bind": "/run/udev", "mode": "ro"}})
|
||||||
|
|
||||||
|
# Host USB: Some driver/library want read folder attributes
|
||||||
|
if self.addon.with_usb:
|
||||||
|
volumes.update({"/dev/bus/usb": {"bind": "/dev/bus/usb", "mode": "rw"}})
|
||||||
|
|
||||||
# Kernel Modules support
|
# Kernel Modules support
|
||||||
if self.addon.with_kernel_modules:
|
if self.addon.with_kernel_modules:
|
||||||
volumes.update({"/lib/modules": {"bind": "/lib/modules", "mode": "ro"}})
|
volumes.update({"/lib/modules": {"bind": "/lib/modules", "mode": "ro"}})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user