lkml.org 
[lkml]   [2023]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 4/7] selinux: make left shifts well defined
On Aug  7, 2023 =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com> wrote:
>
> The loops upper bound represent the number of permissions used (for the
> current class or in general). The limit for this is 32, thus we might
> left shift of one less, 31. Shifting a base of 1 results in undefined
> behavior; use (u32)1 as base.
>
> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
> ---
> v3: split from parent commit and apply cast to correct shift operand
> ---
> security/selinux/ss/services.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)

Merged into selinux/next, thanks.

--
paul-moore.com

\
 
 \ /
  Last update: 2023-08-10 01:08    [W:0.211 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site