]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Feb 2020 11:54:02 +0000 (11:54 +0000)
commitcfd71a68a4931c8bda15357ebb1e9ebcf0e302dc
tree74076b0b2bf581f8bb021ce7179cc5ced07a8259
parent3ab2cbfeff371e8791b031a2852eeef80101a831
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>
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