Skip to content

Commit 9cf2332

Browse files
committed
Rename "previous" revocations to "automatic"
When the term previous was introduced for revocations to be automatically applied there was a hope that everytime a new revocation was built into shim, the previous revocation could be applied automatically. Further experience has shown the real world to be more complex than that. The automatic payload will realistically contain a set of revocations governed by both the cadence at which a distro's customer base updates as well as the severity of the issue being revoked. In order to not break compatibility with existing scripts, the term "previous" will continue to be accepted. This is not a functional change. Signed-off-by: Jan Setje-Eilers <[email protected]>
1 parent 482b748 commit 9cf2332

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

man/mokutil.1

+5-5
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ mokutil \- utility to manipulate machine owner keys
7777
.br
7878
\fBmokutil\fR [--list-sbat-revocations]
7979
.br
80-
\fBmokutil\fR [--set-sbat-policy (\fIlatest\fR | \fIprevious\fR | \fIdelete\fR)]
80+
\fBmokutil\fR [--set-sbat-policy (\fIlatest\fR | \fIautomatic\fR | \fIdelete\fR)]
8181
.br
8282
\fBmokutil\fR [--timeout \fI-1,0..0x7fff\fR]
8383
.br
@@ -189,14 +189,14 @@ List the keys in the secure boot blacklist signature store (dbx)
189189
\fB--list-sbat-revocations\fR
190190
List the entries in the Secure Boot Advanced Targeting store (SBAT)
191191
.TP
192-
\fB--set-sbat-policy (\fIlatest\fR | \fIprevious\fR)\fR
192+
\fB--set-sbat-policy (\fIlatest\fR | \fIautomatic\fR)\fR
193193
Set the SbatPolicy UEFI Variable to have shim apply either the latest
194-
or the previous SBAT revocations. If UEFI Secure Boot is disabled, then
194+
or the automatic SBAT revocations. If UEFI Secure Boot is disabled, then
195195
shim will automatically delete SBAT revocations
196196
.TP
197-
\fB--set-ssp-policy (\fIlatest\fR | \fIprevious\fR | \fIdelete\fR)\fR
197+
\fB--set-ssp-policy (\fIlatest\fR | \fIautomatic\fR | \fIdelete\fR)\fR
198198
Set the SspPolicy UEFI Variable to have shim apply either the latest
199-
or the previous Windows SkuSiPolicy to manage bootmgr revocations. Since
199+
or the automatic Windows SkuSiPolicy to manage bootmgr revocations. Since
200200
these are non-native revocations, shim will not automatically delete
201201
them. If this is needed, spp-policy can be set to delete when Secure
202202
Boot is disabled. The delete policy is non-persistent.

src/mokutil.c

+8-6
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ print_help ()
139139
"\tPrevent fallback from automatically rebooting\n");
140140
printf (" --trust-mok\t\t\t\tTrust MOK keys within the kernel keyring\n");
141141
printf (" --untrust-mok\t\t\t\tDo not trust MOK keys\n");
142-
printf (" --set-sbat-policy <latest/previous>"
143-
"\tApply Lates or Previous SBAT revocations\n");
144-
printf (" --set-ssp-policy <latest/previous/delete>\n"
145-
"\t\t\t\t\tApply Latest, Previous, or delete SkuSiPolicy\n");
142+
printf (" --set-sbat-policy <latest/automatic>"
143+
"\tApply Latest or Automatic SBAT revocations\n");
144+
printf (" --set-ssp-policy <latest/automatic/delete>\n"
145+
"\t\t\t\t\tApply Latest, Automatic, or delete SkuSiPolicy\n");
146146
printf (" --pk\t\t\t\t\tList the keys in PK\n");
147147
printf (" --kek\t\t\t\t\tList the keys in KEK\n");
148148
printf (" --db\t\t\t\t\tList the keys in db\n");
@@ -1956,7 +1956,8 @@ main (int argc, char *argv[])
19561956
command |= SET_SBAT;
19571957
if (strcmp (optarg, "latest") == 0)
19581958
policy = 1;
1959-
else if (strcmp (optarg, "previous") == 0)
1959+
else if ((strcmp (optarg, "previous") == 0) ||
1960+
(strcmp (optarg, "automatic") == 0))
19601961
policy = 2;
19611962
else if (strcmp (optarg, "delete") == 0)
19621963
policy = 3;
@@ -1966,7 +1967,8 @@ main (int argc, char *argv[])
19661967
command |= SET_SSP;
19671968
if (strcmp (optarg, "latest") == 0)
19681969
policy = 1;
1969-
else if (strcmp (optarg, "previous") == 0)
1970+
else if ((strcmp (optarg, "previous") == 0) ||
1971+
(strcmp (optarg, "automatic") == 0))
19701972
policy = 2;
19711973
else if (strcmp (optarg, "delete") == 0)
19721974
policy = 3;

0 commit comments

Comments
 (0)