[PATCH v2 07/11] drm/panthor: reorder capability check last

2025-03-02 Thread Christian Göttsche
From: Christian Göttsche capable() calls refer to enabled LSMs whether to permit or deny the request. This is relevant in connection with SELinux, where a capability check results in a policy decision and by default a denial message on insufficient permission is issued. It can lead to three

Re: [PATCH 06/11] ubifs: reorder capability check last

2024-11-26 Thread Christian Göttsche
On Mon, 25 Nov 2024 at 12:31, Richard Weinberger wrote: > > - Ursprüngliche Mail - > > Von: "Christian Göttsche" > > capable() calls refer to enabled LSMs whether to permit or deny the > > request. This is relevant in connection with SELinux, where a

[PATCH 06/11] ubifs: reorder capability check last

2024-11-26 Thread Christian Göttsche
From: Christian Göttsche capable() calls refer to enabled LSMs whether to permit or deny the request. This is relevant in connection with SELinux, where a capability check results in a policy decision and by default a denial message on insufficient permission is issued. It can lead to three

[PATCH 05/10] drivers: use new capable_any functionality

2024-03-15 Thread Christian Göttsche
Use the new added capable_any function in appropriate cases, where a task is required to have any of two capabilities. Reorder CAP_SYS_ADMIN last. Signed-off-by: Christian Göttsche Acked-by: Alexander Gordeev (s390 portion) --- v4: Additional usage in kfd_ioctl() v3: rename to

Re: [PATCH v2 3/4] selinux: use vma_is_initial_stack() and vma_is_initial_heap()

2023-07-20 Thread Christian Göttsche
On Wed, 19 Jul 2023 at 09:40, Kefeng Wang wrote: > > Use the helpers to simplify code. > > Cc: Paul Moore > Cc: Stephen Smalley > Cc: Eric Paris > Acked-by: Paul Moore > Signed-off-by: Kefeng Wang > --- > security/selinux/hooks.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-)

Re: [PATCH 1/5] mm: introduce vma_is_stack() and vma_is_heap()

2023-07-19 Thread Christian Göttsche
On Wed, 12 Jul 2023 at 16:25, Kefeng Wang wrote: > > Introduce the two helpers for general use. > > Signed-off-by: Kefeng Wang > --- > include/linux/mm.h | 12 > 1 file changed, 12 insertions(+) > > diff --git a/include/linux/mm.h b/include/linux/mm.h > index 1462cf15badf..0bbeb31ac

[PATCH v4 5/9] drivers: use new capable_any functionality

2023-05-12 Thread Christian Göttsche
Use the new added capable_any function in appropriate cases, where a task is required to have any of two capabilities. Reorder CAP_SYS_ADMIN last. Signed-off-by: Christian Göttsche --- v4: Additional usage in kfd_ioctl() v3: rename to capable_any() --- drivers/gpu/drm/amd/amdkfd