From 8b1baf589ebad0862791c32c7a9b953071dec20a Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Tue, 5 May 2020 15:04:46 -0400 Subject: meta-agl-profile-graphical: add SMACK labelling for weston The initial patch to allow disabling memfd usage in weston has proven to be naive, as the v7 wayland seat resource changes in Weston 8.0.0 are dependent on them. To avoid needing to make more invasive changes such as forcing the seat resource version back to v6, drop the patch in favor of having Weston run under a System::Weston SMACK label and adding the rules required to have it work. As well, use-XDG_RUNTIMESHARE_DIR.patch and the associated service unit changes have been removed since they are not required now with explicit labelling in place. Bug-AGL: SPEC-3305, SPEC-3350 Signed-off-by: Scott Murray Change-Id: I8aef287219a7f95992a82f4ec2ee8e1822ca4ce8 --- .../recipes-graphics/wayland/weston-init/weston.conf.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'meta-agl-profile-graphical/recipes-graphics/wayland/weston-init') diff --git a/meta-agl-profile-graphical/recipes-graphics/wayland/weston-init/weston.conf.in b/meta-agl-profile-graphical/recipes-graphics/wayland/weston-init/weston.conf.in index 211136cc9..9c3df052d 100644 --- a/meta-agl-profile-graphical/recipes-graphics/wayland/weston-init/weston.conf.in +++ b/meta-agl-profile-graphical/recipes-graphics/wayland/weston-init/weston.conf.in @@ -1,9 +1,6 @@ [Service] Type=notify Environment="XDG_RUNTIME_DIR=@XDG_RUNTIME_DIR@" -Environment="XDG_RUNTIMESHARE_DIR=@XDG_RUNTIME_DIR@/share" -ExecStartPre=/bin/mkdir -p @XDG_RUNTIME_DIR@/share -ExecStartPre=+/usr/bin/chsmack -a User::App-Shared -t @XDG_RUNTIME_DIR@/share # Note that clearing PAMName (thus not having PAMName=login) disables # logind support for the session, which allows setting XDG_RUNTIME_DIR # to something other than /run/user/% (as is done above). @@ -12,3 +9,4 @@ ExecStartPre=+/usr/bin/chsmack -a User::App-Shared -t @XDG_RUNTIME_DIR@/share PAMName= ExecStart= ExecStart=@WESTONSTART@ +SmackProcessLabel=System::Weston -- cgit 1.2.3-korg