diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2020-04-20 15:27:31 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-04-22 15:38:10 -0400 |
commit | 9521eb3ea19a828d8fd59a2785338fd742dbcf31 (patch) | |
tree | a80c11e93446cc3fb79d73b6d0ef884e402a3d0b /sound/hda | |
parent | 4300590243895ac39e8c97a2f5acd004dad8a42f (diff) | |
download | linux-9521eb3ea19a828d8fd59a2785338fd742dbcf31.tar.bz2 |
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 'sound/hda')
0 files changed, 0 insertions, 0 deletions