ok, reverting of a Ubuntu-specific commit dc757a645cfa82f6ac252365df20a36a9ff82760
:
commit dc757a645cfa82f6ac252365df20a36a9ff82760
Author: John Johansen <john.johansen@canonical.com>
Date: Thu Nov 30 11:48:33 2023 -0800
UBUNTU: SAUCE: apparmor4.0.0 [81/90]: apparmor: convert easy uses of unconfined() to label_mediates()
BugLink: http://bugs.launchpad.net/bugs/2028253
This begins the transition from doing a broad unconfined() check to a
finer label_mediates() check. Not only does this allow for finer control
but it simplifies some code paths, removing redundant checks, will allow
us to refactor and simplify the code more, and is generally a small
performance win.
Note: capabilities and resource need to be converted to use pdb
before they can use label_mediates
Signed-off-by: John Johansen <john.johansen@canonical.com>
(cherry picked from commit d9b866dc2f134a9e8dc21dbfacc935f454896c49
https://git.launchpad.net/~apparmor-dev/ubuntu-kernel-next)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
solves the problem.
And precisely the same commit was also known for introducing another issue: