Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smackfs: Prevent underflow in smk_set_cipso()
[ Upstream commit 3ad49d3 ] 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: e114e47 ("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>
- Loading branch information