summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-08-18 18:12:15 +0300
committerPaul Moore <paul@paul-moore.com>2023-09-13 20:46:57 +0300
commit7969ba577636a83553baf95882eb310b39e1c742 (patch)
tree44e772d2e06954959516abf8713218ec7c61d9b6 /scripts/gdb/linux/modules.py
parent6f594f5a3dc4917be1556e524673420197ca471d (diff)
downloadlinux-7969ba577636a83553baf95882eb310b39e1c742.tar.xz
selinux: simplify avtab slot calculation
Instead of dividing by 8 and then performing log2 by hand, use a more readable calculation. The behavior of rounddown_pow_of_two() for an input of 0 is undefined, so handle that case and small values manually to achieve the same results. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Reviewed-by: Stephen Smalley <stephen.smalley.work@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions