Merge pull request #141823 from zopieux/fix-rtl433-hardening
This commit is contained in:
commit
b84bf1f3c3
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ in
|
|||
serviceConfig = {
|
||||
# rtl-sdr udev rules make supported USB devices +rw by plugdev.
|
||||
SupplementaryGroups = "plugdev";
|
||||
# rtl_433 needs rw access to the USB radio.
|
||||
PrivateDevices = lib.mkForce false;
|
||||
DeviceAllow = lib.mkForce "char-usb_device rw";
|
||||
RestrictAddressFamilies = [ "AF_NETLINK" ];
|
||||
|
||||
ExecStart = let
|
||||
matchers = (map (m:
|
||||
"--channel_matcher '${m.name},${toString m.channel},${m.location}'"
|
||||
|
|
Loading…
Reference in a new issue