diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2021-07-15 12:17:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-18 14:40:18 +0300 |
commit | df19d95141d18231952153e03f578f078f0be384 (patch) | |
tree | 8a3e757b7c6590d7be0b2c445fa49d16b166ea6a /security/security.c | |
parent | 3533aa65e6a93aedb8f5baf5bb52a3165f6a67c7 (diff) | |
download | linux-df19d95141d18231952153e03f578f078f0be384.tar.xz |
Smack: Fix wrong semantics in smk_access_entry()
[ Upstream commit 6d14f5c7028eea70760df284057fe198ce7778dd ]
In the smk_access_entry() function, if no matching rule is found
in the rust_list, a negative error code will be used to perform bit
operations with the MAY_ enumeration value. This is semantically
wrong. This patch fixes this issue.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions