-
Notifications
You must be signed in to change notification settings - Fork 189
/
bluealsa-aplay.service.in
54 lines (50 loc) · 1.31 KB
/
bluealsa-aplay.service.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[Unit]
Description=BlueALSA player service
Documentation=man:bluealsa-aplay(1)
Requisite=dbus.service
# In order to customize BlueALSA player D-Bus service one should create an
# override for this systemd unit file. Please note, that in the override file
# one will have to explicitly clear the ExecStart before setting it again.
# See the bluez-alsa wiki for more options.
#
# $ sudo systemctl edit bluealsa-aplay
# [Service]
# ExecStart=
# ExecStart=@bindir@/bluealsa-aplay -S --pcm=my-playback-pcm
[Service]
Type=simple
User=@bluealsaaplayuser@
Group=audio
ExecStart=@bindir@/bluealsa-aplay @systemdbluealsaaplayargs@
Restart=on-failure
# Sandboxing
CapabilityBoundingSet=
DeviceAllow=char-alsa rw
DevicePolicy=closed
IPAddressDeny=any
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=strict
RemoveIPC=true
RestrictAddressFamilies=AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
SystemCallFilter=~@resources @privileged
UMask=0077
[Install]
WantedBy=bluetooth.target