Skip to content

Commit

Permalink
s390/ipl: add missing secure/has_secure file to ipl type 'unknown'
Browse files Browse the repository at this point in the history
commit ea5717c upstream.

OS installers are relying on /sys/firmware/ipl/has_secure to be
present on machines supporting secure boot. This file is present
for all IPL types, but not the unknown type, which prevents a secure
installation when an LPAR is booted in HMC via FTP(s), because
this is an unknown IPL type in linux. While at it, also add the secure
file.

Fixes: c9896ac ("s390/ipl: Provide has_secure sysfs attribute")
Cc: stable@vger.kernel.org
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
svens-s390 authored and gregkh committed Sep 13, 2023
1 parent 6489ec0 commit f9a3d6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/s390/kernel/ipl.c
Expand Up @@ -503,6 +503,8 @@ static struct attribute_group ipl_ccw_attr_group_lpar = {

static struct attribute *ipl_unknown_attrs[] = {
&sys_ipl_type_attr.attr,
&sys_ipl_secure_attr.attr,
&sys_ipl_has_secure_attr.attr,
NULL,
};

Expand Down

0 comments on commit f9a3d6f

Please sign in to comment.