proc-cmdline: make checking of EFI options variable optional
authorLennart Poettering <lennart@poettering.net>
Wed, 20 May 2020 17:22:09 +0000 (19:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 May 2020 17:22:09 +0000 (19:22 +0200)
commit09835de3ccfee80703d00cd16978de2c296706ed
treefb5743ea7434f2314c25030d49a99b66debcf219
parent05a7827e8782527f6c28d5f3f1fbec327b141754
proc-cmdline: make checking of EFI options variable optional

And do not use it in the IMPORT{cmdline} udev code. Wherever we expose
direct interfaces to check the kernel cmdline, let's not consult our
systemd-specific EFI variable, but strictly use the actual kernel
variable, because that's what we claim we do. i.e. it's fine to use the
EFI variable for our own settings, but for the generic APIs to the
kernel cmdline we should not use it.

Specifically, this applies to IMPORT{cmdline} and
ConditionKernelCommandLine=. In the latter case we weren#t checking the
EFI variable anyway, hence let's do the same for the udev case, too.

Fixes: #15739
src/basic/proc-cmdline.c
src/basic/proc-cmdline.h
src/udev/udev-rules.c