Smack: Improve mount process memory use
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 5 Apr 2023 15:46:14 +0000 (08:46 -0700)
committerCasey Schaufler <casey@schaufler-ca.com>
Wed, 5 Apr 2023 15:46:14 +0000 (08:46 -0700)
commitde93e515db306767549bb29a926f523ca2a601ab
tree1740d612aa0754b21cb142eae1e4cf47ca043111
parent502a29b04d857c28aa36f8829a5c673b9b8864a6
Smack: Improve mount process memory use

The existing mount processing code in Smack makes many unnecessary
copies of Smack labels. Because Smack labels never go away once
imported it is safe to use pointers to them rather than copies.
Replace the use of copies of label names to pointers to the global
label list entries.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c