• Masahisa Kojima's avatar
    efivarfs: automatically update super block flag · 94f7f618
    Masahisa Kojima authored
    efivar operation is updated when the tee_stmm_efi module is probed.
    tee_stmm_efi module supports SetVariable runtime service, but user needs
    to manually remount the efivarfs as RW to enable the write access if the
    previous efivar operation does not support SetVariable and efivarfs is
    mounted as read-only.
    
    This commit notifies the update of efivar operation to efivarfs
    subsystem, then drops SB_RDONLY flag if the efivar operation supports
    SetVariable.
    Signed-off-by: default avatarMasahisa Kojima <masahisa.kojima@linaro.org>
    [ardb: use per-superblock instance of the notifier block]
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    94f7f618
efi.c 30.1 KB