tmp_suning_uos_patched/security/smack
Tianjia Zhang df19d95141 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>
2021-09-18 13:40:18 +02:00
..
Kconfig
Makefile
smack_access.c Smack: Fix wrong semantics in smk_access_entry() 2021-09-18 13:40:18 +02:00
smack_lsm.c Smack LSM changes for Linux 5.10 2020-10-13 16:18:51 -07:00
smack_netfilter.c
smack.h Smack: Use the netlabel cache 2020-09-11 15:31:31 -07:00
smackfs.c smackfs: restrict bytes count in smk_set_cipso() 2021-07-19 09:45:03 +02:00