linux/security
Paul Moore 9ba8802c8b lsm: convert security_setselfattr() to use memdup_user()
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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310270805.2ArE52i5-lkp@intel.com/
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
2023-11-12 22:54:42 -05:00
..
apparmor lsm: consolidate buffer size handling into lsm_fill_user_ctx() 2023-11-12 22:54:42 -05:00
bpf LSM: Identify modules by more than name 2023-11-12 22:54:42 -05:00
integrity As usual, lots of singleton and doubleton patches all over the tree and 2023-11-02 20:53:31 -10:00
keys This update includes the following changes: 2023-11-02 16:15:30 -10:00
landlock LSM: Identify modules by more than name 2023-11-12 22:54:42 -05:00
loadpin LSM: Identify modules by more than name 2023-11-12 22:54:42 -05:00
lockdown LSM: Identify modules by more than name 2023-11-12 22:54:42 -05:00
safesetid LSM: Identify modules by more than name 2023-11-12 22:54:42 -05:00
selinux lsm: consolidate buffer size handling into lsm_fill_user_ctx() 2023-11-12 22:54:42 -05:00
smack lsm: consolidate buffer size handling into lsm_fill_user_ctx() 2023-11-12 22:54:42 -05:00
tomoyo LSM: Identify modules by more than name 2023-11-12 22:54:42 -05:00
yama LSM: Identify modules by more than name 2023-11-12 22:54:42 -05:00
commoncap.c LSM: Identify modules by more than name 2023-11-12 22:54:42 -05:00
device_cgroup.c device_cgroup: Fix kernel-doc warnings in device_cgroup 2023-06-21 09:30:49 -04:00
inode.c security: convert to new timestamp accessors 2023-10-18 14:08:31 +02:00
Kconfig mm/slab: remove HAVE_HARDENED_USERCOPY_ALLOCATOR 2023-05-24 15:38:17 +02:00
Kconfig.hardening hardening: Move BUG_ON_DATA_CORRUPTION to hardening options 2023-08-15 14:57:25 -07:00
lsm_audit.c lsm: fix a number of misspellings 2023-05-25 17:52:15 -04:00
lsm_syscalls.c LSM: Helpers for attribute names and filling lsm_ctx 2023-11-12 22:54:42 -05:00
Makefile LSM: syscalls for current process attributes 2023-11-12 22:54:42 -05:00
min_addr.c sysctl: pass kernel pointers to ->proc_handler 2020-04-27 02:07:40 -04:00
security.c lsm: convert security_setselfattr() to use memdup_user() 2023-11-12 22:54:42 -05:00