smackfs: Added check catlen
authorDenis Arefev <arefev@swemel.ru>
Tue, 24 Jan 2023 10:50:37 +0000 (13:50 +0300)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 21 Feb 2023 19:22:02 +0000 (11:22 -0800)
commitccfd889acb06eab10b98deb4b5eef0ec74157ea0
tree675f4bb4232d8fb1129d4fb326678da286e71401
parent2241ab53cbb5cdb08a6b2d4688feb13971058f65
smackfs: Added check catlen

  If the catlen is 0, the memory for the netlbl_lsm_catmap
  structure must be allocated anyway, otherwise the check of
  such rules is not completed correctly.

Signed-off-by: Denis Arefev <arefev@swemel.ru>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smackfs.c