mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
smackfs: Prevent underflow in smk_set_cipso()
[ Upstream commit3ad49d37cf] There is a upper bound to "catlen" but no lower bound to prevent negatives. I don't see that this necessarily causes a problem but we may as well be safe. Fixes:e114e47377("Smack: Simplified Mandatory Access Control Kernel") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d1994bb594
commit
d41ceafe3d
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue