]> git.ipfire.org Git - people/ms/linux.git/commit
apparmor: don't create raw_sha1 symlink if sha1 hashing is disabled
authorJohn Johansen <john.johansen@canonical.com>
Fri, 5 Feb 2021 12:56:02 +0000 (04:56 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 9 Jul 2022 22:13:59 +0000 (15:13 -0700)
commit482e8050aab4ad10bcd64241f1a9b540463b3274
tree6e8586bf5d5d0d8a4e7aab2509d50c91b49c030b
parent5bfcbd22ee4e6ad5ae698518fadd0f03ea109537
apparmor: don't create raw_sha1 symlink if sha1 hashing is disabled

Currently if sha1 hashing of policy is disabled a sha1 hash symlink
to the non-existent file is created. There is now reason to create
the symlink in this case so don't do it.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c