Change the user and group used to run weston or the agl-compositor
from "display" to "weston" and the weston service unit name to match
the reworked scheme for running weston as non-root in poky master.
This approach seems better in the long-term for maintenance and
avoiding surprises for users coming to AGL from other distributions.
Bug-AGL: SPEC-3819
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ia8093a6b14d6b5311f18633b6d0083bdd216fade
[Unit]
Description=Initiate afm-system-setup
[Unit]
Description=Initiate afm-system-setup
-Before=weston@display.service afs-supervisor.service afm-system-daemon.service
+Before=weston.service afs-supervisor.service afm-system-daemon.service
[Service]
Type=oneshot
ExecStart=-@afm_libexecdir@/afm-system-setup.sh
[Service]
Type=oneshot
ExecStart=-@afm_libexecdir@/afm-system-setup.sh
-dodir /run/user $pdir $pdir/display $pdir/apis $pdir/apis/ws $pdir/apis/link
+dodir /run/user $pdir $pdir/weston $pdir/apis $pdir/apis/ws $pdir/apis/link
-doln @afm_platform_rundir@/display/wayland-0 $udir/wayland-0
+doln @afm_platform_rundir@/weston/wayland-0 $udir/wayland-0
ENDIF
IF_PERM(:public:display)
ENDIF
IF_PERM(:public:display)
-BindsTo=weston@display.service
-After=weston@display.service
+BindsTo=weston.service
+After=weston.service
ENDIF
IF_PERM(:public:bluetooth)
ENDIF
IF_PERM(:public:bluetooth)
ON_PERM(:platform:no-oom, OOMScoreAdjust=-500)
ON_PERM(:partner:real-time, IOSchedulingClass=realtime)
ON_PERM(:platform:no-oom, OOMScoreAdjust=-500)
ON_PERM(:partner:real-time, IOSchedulingClass=realtime)
-ON_PERM(:public:display, SupplementaryGroups=display)
+ON_PERM(:public:display, SupplementaryGroups=weston)
ON_PERM(:public:audio, SupplementaryGroups=audio)
ON_NOT_PERM(:public:syscall:clock, SystemCallFilter=~@clock)
%nl
ON_PERM(:public:audio, SupplementaryGroups=audio)
ON_NOT_PERM(:public:syscall:clock, SystemCallFilter=~@clock)
%nl