apparmor: use per file locks for transactional queries
authorHamza Mahfooz <someguy@effective-light.com>
Fri, 30 Jul 2021 05:23:55 +0000 (01:23 -0400)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 3 Nov 2021 07:46:28 +0000 (00:46 -0700)
commitd0d845a790d31adb0c90f1f8364de199b23128c8
tree8dfa40741abf244ba02f92c10f91bede7f3c9eb0
parentaa4ceed7c3276852031a3e3d6fa767ff1858831f
apparmor: use per file locks for transactional queries

As made mention of in commit 1dea3b41e84c5 ("apparmor: speed up
transactional queries"), a single lock is currently used to synchronize
transactional queries. We can, use the lock allocated for each file by
VFS instead.

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