Skip to content
Snippets Groups Projects
Commit 415e3e43 authored by nimrod's avatar nimrod
Browse files

Secure groups for Kodi.

Don't grant the groups globally, instead grant specific services
specific groups as needed.
parent 8ff5d38c
No related branches found
No related tags found
No related merge requests found
Pipeline #511 passed
......@@ -15,6 +15,8 @@ Before=graphical.target
[Service]
User=kodi
PAMName=login
SupplementaryGroups=audio
SupplementaryGroups=cdrom
Environment="DISPLAY=:0"
ExecStart=flatpak run --device=all --filesystem=/etc/group --filesystem=/srv/library tv.kodi.Kodi --standalone --windowing=x11 -fs
Type=simple
......
......@@ -14,7 +14,9 @@ ConditionPathExists=/dev/tty7
[Service]
User=kodi
SupplementaryGroups=input
SupplementaryGroups=tty
SupplementaryGroups=video
PAMName=login
ExecStart=startx
Type=simple
......
......@@ -74,12 +74,6 @@
- name: Create user
user:
create_home: true
groups:
- audio
- cdrom
- input
- plugdev
- video
home: /var/lib/kodi
name: kodi
password: '!' # pragma: allowlist secret
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment