Dan Carpenter 254fe9482d smackfs: Prevent underflow in smk_set_cipso()
[ Upstream commit 3ad49d37cf5759c3b8b68d02e3563f633d9c1aee ]

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: e114e473771c ("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>
2023-09-13 09:53:22 +02:00
..
2023-07-07 09:55:31 -07:00
2023-06-12 21:26:19 +02:00
2023-04-27 16:52:33 -07:00
2023-04-27 16:52:33 -07:00
2023-05-25 17:52:15 -04:00
2023-05-25 17:52:15 -04:00