[PATCH] lsm: convert security_setselfattr() to use memdup_user()
Paul Moore
paul at paul-moore.com
Mon Nov 13 04:09:07 UTC 2023
On Wed, Nov 1, 2023 at 9:54 PM Paul Moore <paul at paul-moore.com> wrote:
>
> As suggested by the kernel test robot, memdup_user() is a better
> option than the combo of kmalloc()/copy_from_user().
>
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202310270805.2ArE52i5-lkp@intel.com/
> Signed-off-by: Paul Moore <paul at paul-moore.com>
> ---
> security/security.c | 11 +++--------
> 1 file changed, 3 insertions(+), 8 deletions(-)
Merged into lsm/dev.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list