commit | 043392644c9149feb835564283d44e8664112837 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Jul 23 18:23:05 2020 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Aug 21 11:02:03 2020 +0200 |
tree | a49f93db5d9cbc4f9ebcb2d0366fe00faafdf0d9 | |
parent | 5edf79a812a0a2e03a5433b19cb63caffb0b1836 [diff] |
Smack: prevent underflow in smk_set_cipso() [ Upstream commit 42a2df3e829f3c5562090391b33714b2e2e5ad4a ] We have an upper bound on "maplevel" but forgot to check for negative values. Fixes: e114e473771c ("Smack: Simplified Mandatory Access Control Kernel") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Sasha Levin <sashal@kernel.org>