summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2021-02-23 13:06:24 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-07 12:19:00 +0100
commitae84b246a76c4ace5997e5ca7e9fde3e1a526bc3 (patch)
treebbce8e5608fa7193a1780f781e93e9bf4e7765ea /fs/sysfs/file.c
parent4b2b65055c7617669943e40c7cdce9ead762b9fa (diff)
downloadlinux-stable-ae84b246a76c4ace5997e5ca7e9fde3e1a526bc3.tar.gz
linux-stable-ae84b246a76c4ace5997e5ca7e9fde3e1a526bc3.tar.bz2
linux-stable-ae84b246a76c4ace5997e5ca7e9fde3e1a526bc3.zip
scsi: iscsi: Restrict sessions and handles to admin capabilities
commit 688e8128b7a92df982709a4137ea4588d16f24aa upstream. Protect the iSCSI transport handle, available in sysfs, by requiring CAP_SYS_ADMIN to read it. Also protect the netlink socket by restricting reception of messages to ones sent with CAP_SYS_ADMIN. This disables normal users from being able to end arbitrary iSCSI sessions. Cc: stable@vger.kernel.org Reported-by: Adam Nichols <adam@grimm-co.com> Reviewed-by: Chris Leech <cleech@redhat.com> Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Lee Duncan <lduncan@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs/file.c')
0 files changed, 0 insertions, 0 deletions