• Linus Torvalds's avatar
    Merge tag 'lsm-pr-20240105' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm · 063a7ce3
    Linus Torvalds authored
    Pull security module updates from Paul Moore:
    
     - Add three new syscalls: lsm_list_modules(), lsm_get_self_attr(), and
       lsm_set_self_attr().
    
       The first syscall simply lists the LSMs enabled, while the second and
       third get and set the current process' LSM attributes. Yes, these
       syscalls may provide similar functionality to what can be found under
       /proc or /sys, but they were designed to support multiple,
       simultaneaous (stacked) LSMs from the start as opposed to the current
       /proc based solutions which were created at a time when only one LSM
       was allowed to be active at a given time.
    
       We have spent considerable time discussing ways to extend the
       existing /proc interfaces to support multiple, simultaneaous LSMs and
       even our best ideas have been far too ugly to support as a kernel
       API; after +20 years in the kernel, I felt the LSM layer had
       established itself enough to justify a handfu...
    063a7ce3
syscall_64.tbl 14.9 KB