summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnace@redhat.com>2020-04-20 15:27:31 +0200
committerPaul Moore <paul@paul-moore.com>2020-04-22 15:38:10 -0400
commit9521eb3ea19a828d8fd59a2785338fd742dbcf31 (patch)
treea80c11e93446cc3fb79d73b6d0ef884e402a3d0b /Kbuild
parent4300590243895ac39e8c97a2f5acd004dad8a42f (diff)
downloadlinux-9521eb3ea19a828d8fd59a2785338fd742dbcf31.tar.gz
linux-9521eb3ea19a828d8fd59a2785338fd742dbcf31.tar.bz2
linux-9521eb3ea19a828d8fd59a2785338fd742dbcf31.zip
selinux: don't produce incorrect filename_trans_count
I thought I fixed the counting in filename_trans_read_helper() to count the compat rule count correctly in the final version, but it's still wrong. To really count the same thing as in the compat path, we'd need to add up the cardinalities of stype bitmaps of all datums. Since the kernel currently doesn't implement an ebitmap_cardinality() function (and computing the proper count would just waste CPU cycles anyway), just document that we use the field only in case of the old format and stop updating it in filename_trans_read_helper(). Fixes: 430059024389 ("selinux: implement new format of filename transitions") Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions