summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/kmscube
diff options
context:
space:
mode:
authorPurushottam choudhary <purushottam.choudhary@kpit.com>2020-11-04 16:04:00 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-08 14:03:20 +0000
commitec37a2be661bbaa494455a5417db148495920039 (patch)
tree306a8ae9792a38a8cea4b5ce6a6684c5556f536b /meta/recipes-graphics/kmscube
parentce447d70df386ca55ce1672478b245851556374e (diff)
downloadpoky-ec37a2be661bbaa494455a5417db148495920039.tar.gz
systemd: selinux hook handling to enumerate nexthop
When selinux is enabled, the call of manager_rtnl_enumerate_nexthop() fails. This fix is to facilitate selinux hook handling for enumerating nexthop. In manager_rtnl_enumerate_nexthop() there is a check if "Not supported" is returned by the send_netlink() call. This check expects that -EOPNOTSUPP is returned, the selinux hook seems to return -EINVAL instead. This happens in kernel older than 5.3 (more specificallytorvalds/linux@65ee00a) as it does not support nexthop handling through netlink. And if SELinux is enforced in the order kernel, callingRTM_GETNEXTHOP returns -EINVAL. Thus adding a call in the manager_rtnl_enumerate_nexthop for the extra return -EINVAL. Note: systemd version is different in yocto project (v246.6) and systemd master(v247) and In systemd verison(246.6) mac_selinux_enforcing() function is not declared and defined. (From OE-Core rev: c521df3f0a86521ce78fd5c057293b2c242fba79) Signed-off-by: Purushottam choudhary <purushottam.choudhary@kpit.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/kmscube')
0 files changed, 0 insertions, 0 deletions