From: Marek Szyprowski Date: Wed, 26 Oct 2022 11:38:16 +0000 (+0200) Subject: kdbus: adapt to Linux v5.15 release X-Git-Tag: accepted/tizen/unified/20221102.172737~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dea3ac3046694d38847a2173edcdb6994f01744;p=platform%2Fkernel%2Flinux-tizen-modules-source.git kdbus: adapt to Linux v5.15 release Change-Id: I272a0e64cd2a849366803505a291eb2d31548b7b Signed-off-by: Marek Szyprowski --- diff --git a/kernel/kdbus/metadata.c b/kernel/kdbus/metadata.c index 274a419..3358d06 100644 --- a/kernel/kdbus/metadata.c +++ b/kernel/kdbus/metadata.c @@ -31,6 +31,7 @@ #include #include #include +#include #include "bus.h" #include "connection.h" @@ -291,7 +292,11 @@ static int kdbus_meta_proc_collect_seclabel(struct kdbus_meta_proc *mp) u32 sid, len; int ret; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 13, 0) + security_task_getsecid_subj(current, &sid); +#else security_task_getsecid(current, &sid); +#endif ret = security_secid_to_secctx(sid, &ctx, &len); if (ret < 0) { /*