1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-15 00:41:54 +00:00

miracle-wifid: reduce caps from .service file

Change-Id: I8434fe9dfcf141156635d7a6f8a9c2aaa4469263
This commit is contained in:
Derek Dai 2017-05-10 13:20:51 +08:00
parent d776db8c19
commit 3584a9a976
2 changed files with 10 additions and 1 deletions

View file

@ -6,7 +6,13 @@ Requires=network.target
[Service]
BusName=org.freedesktop.miracle.wifi
Environment=PATH=/sbin:/usr/bin
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/miracle-wifid --use-dev --log-level trace --lazy-managed
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/miracle-wifid \
--use-dev \
--log-level trace \
--lazy-managed
CapabilityBoundingSet=CAP_NET_ADMIN \
CAP_NET_BIND_SERVICE \
CAP_NET_RAW
[Install]
WantedBy=multi-user.target

View file

@ -10,6 +10,9 @@ ExecStart=@exec_path@/miracle-wifid \
--use-dev \
--log-level trace \
--lazy-managed
CapabilityBoundingSet=CAP_NET_ADMIN \
CAP_NET_BIND_SERVICE \
CAP_NET_RAW
[Install]
WantedBy=multi-user.target