]> git.baikalelectronics.ru Git - kernel.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)
commit4c77e640699e2eb6ca722c2df5caabbbc5cfed9f
tree6e8586bf5d5d0d8a4e7aab2509d50c91b49c030b
parent8edf8a21a7f9e34dfbb10fd6d5d5be7636e59b9a
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