diff options
author | John Johansen <john.johansen@canonical.com> | 2019-09-14 03:34:06 -0700 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2019-11-22 16:41:08 -0800 |
commit | 341c1fda5e17156619fb71acfc7082b2669b4b72 (patch) | |
tree | e5fbbd464835c19aec5fa16ce4bd325a4667fa05 /security/apparmor/domain.c | |
parent | bce4e7e9c45ef97ac1e30b9cb4adc25b5b5a7cfa (diff) |
apparmor: make it so work buffers can be allocated from atomic context
In some situations AppArmor needs to be able to use its work buffers
from atomic context. Add the ability to specify when in atomic context
and hold a set of work buffers in reserve for atomic context to
reduce the chance that a large work buffer allocation will need to
be done.
Fixes: df323337e507 ("apparmor: Use a memory pool instead per-CPU caches")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/domain.c')
-rw-r--r-- | security/apparmor/domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index 0da0b2b96972..51b3143ec256 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c @@ -896,7 +896,7 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm) ctx->nnp = aa_get_label(label); /* buffer freed below, name is pointer into buffer */ - buffer = aa_get_buffer(); + buffer = aa_get_buffer(false); if (!buffer) { error = -ENOMEM; goto done; |