common_file_perm can be called from both atomic an non-atomic contexts. In
non-atomic
contexts, we should be using the non-atomic forms of the
_current_label_crit_section
helpers. This patch series introduces and uses a helper for this purpose.
Ryan Lee (2):
apparmor: introduce adaptive_current_label_crit_section helpers
apparmor: use adaptive_current_label_crit_section helper in
common_file_perm
security/apparmor/include/cred.h | 38 ++++++++++++++++++++++++++++++++
security/apparmor/lsm.c | 4 ++--
2 files changed, 40 insertions(+), 2 deletions(-)
--
2.43.0