From: Stephen Rothwell Date: Thu, 2 Sep 2021 01:32:12 +0000 (+1000) Subject: Merge remote-tracking branch 'apparmor/apparmor-next' X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e0e6c8330a828f7c4b2749c9712dca10fecc9c48;p=users%2Fjedix%2Flinux-maple.git Merge remote-tracking branch 'apparmor/apparmor-next' --- e0e6c8330a828f7c4b2749c9712dca10fecc9c48 diff --cc security/apparmor/lsm.c index f72406fe1bf2,64d6020ffd50..0834ba6a8a2e --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@@ -1711,9 -1701,9 +1711,9 @@@ static int __init alloc_buffers(void #ifdef CONFIG_SYSCTL static int apparmor_dointvec(struct ctl_table *table, int write, - void __user *buffer, size_t *lenp, loff_t *ppos) + void *buffer, size_t *lenp, loff_t *ppos) { - if (!policy_admin_capable(NULL)) + if (!aa_current_policy_admin_capable(NULL)) return -EPERM; if (!apparmor_enabled) return -EINVAL;