aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorOndrej Mosnacek <[email protected]>2020-04-20 15:27:31 +0200
committerPaul Moore <[email protected]>2020-04-22 15:38:10 -0400
commit9521eb3ea19a828d8fd59a2785338fd742dbcf31 (patch)
treea80c11e93446cc3fb79d73b6d0ef884e402a3d0b /lib/debugobjects.c
parent4300590243895ac39e8c97a2f5acd004dad8a42f (diff)
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 <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions