summaryrefslogtreecommitdiff
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 11:24:21 +0100
commit67c6818821a39fb50e1b84e7259aee5298d2c512 (patch)
tree8c331f1e34dd24c8ded58bcc2b5bad5d146e1e49 /fs/sysfs/file.c
parent9bf5da0d0fcca080b2254a30fa4b8ed47a96a0d0 (diff)
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