efivarfs: Add uid/gid mount options
authorJiao Zhou <jiaozhou@google.com>
Thu, 19 Oct 2023 22:46:39 +0000 (00:46 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 19 Oct 2023 22:47:18 +0000 (00:47 +0200)
commit5329aa5101f73c451bcd48deaf3f296685849d9c
treeec9c0fe5ebf3675c6385db7a49994affc2ede172
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
efivarfs: Add uid/gid mount options

Allow UEFI variables to be modified by non-root processes in order to
run sandboxed code. This doesn't change the behavior of mounting
efivarfs unless uid/gid are specified; by default both are set to root.

Signed-off-by: Jiao Zhou <jiaozhou@google.com>
Acked-by: Matthew Garrett <mgarrett@aurora.tech>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
fs/efivarfs/inode.c
fs/efivarfs/internal.h
fs/efivarfs/super.c