aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack/smack_lsm.c
diff options
context:
space:
mode:
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>2021-07-15 17:17:24 +0800
committerCasey Schaufler <casey@schaufler-ca.com>2021-07-20 09:17:36 -0700
commit6d14f5c7028eea70760df284057fe198ce7778dd (patch)
tree46d0550c4a1377d867486aa00653c3b65cbaf800 /security/smack/smack_lsm.c
parentLinux 5.14-rc2 (diff)
downloadlinux-dev-6d14f5c7028eea70760df284057fe198ce7778dd.tar.xz
linux-dev-6d14f5c7028eea70760df284057fe198ce7778dd.zip
Smack: Fix wrong semantics in smk_access_entry()
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions