]> code.ossystems Code Review - openembedded-core.git/commit
xserver-nodm-init: Fix the start failure for non-root user
authorKevin Hao <kexin.hao@windriver.com>
Sat, 8 Feb 2020 12:36:42 +0000 (20:36 +0800)
committerArmin Kuster <akuster808@gmail.com>
Fri, 21 Feb 2020 02:58:01 +0000 (18:58 -0800)
commitfec05cd1eaaad41fd72a29d7792f1c37d2a82f3e
treeba8d48b4fd5f737a28fccdfdc6acb4c6112c342c
parent0e94cfb4aa718b4842f608879b77d5671b5bf338
xserver-nodm-init: Fix the start failure for non-root user

In order to start the xserver, a non-root user should have the
cap_sys_admin capability to set the drm master. We try to get
the cap_sys_admin capability by setting it in both the thread
and file inheritable set. The side effect of this is that we
would have to add the "pam" to the distro features if we want
use the xserver-nodm-init for a non-root user.

[Yocto #11526]

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cfd71a68a4931c8bda15357ebb1e9ebcf0e302dc)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-graphics/x11-common/xserver-nodm-init/capability.conf [new file with mode: 0644]
meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb