]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smack: /smack/doi must be > 0
authorKonstantin Andreev <andreev@swemel.ru>
Tue, 30 Sep 2025 12:16:02 +0000 (15:16 +0300)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 30 Dec 2025 20:17:15 +0000 (12:17 -0800)
commit19c013e1551bf51e1493da1270841d60e4fd3f15
treec124b7c65770cf53f4056f6b6f1533a74ecdad91
parente877cbb4531c932312b65eeb4f577845482862d1
smack: /smack/doi must be > 0

/smack/doi allows writing and keeping negative doi values.
Correct values are 0 < doi <= (max 32-bit positive integer)

(2008-02-04, Casey Schaufler)
Fixes: e114e473771c ("Smack: Simplified Mandatory Access Control Kernel")
Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smackfs.c