summaryrefslogtreecommitdiff
path: root/b4/command.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-11 14:56:05 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-11 14:56:05 -0400
commitf1a2700e70018349d5c63f2053ba4b0e7ebe351a (patch)
treed3bea7c91ff7d679cbe9d4614b02f40e09cac94c /b4/command.py
parent31348a14afdb1d39e7faf9576eaddea1ced76e19 (diff)
downloadb4-f1a2700e70018349d5c63f2053ba4b0e7ebe351a.tar.gz
Reimplement attestation code one more time
Move end-to-end attestation code into its own library: patatt. See https://git.kernel.org/pub/scm/utils/patatt/patatt.git/about/ It is included into b4 as a submodule, but you will need to init it first: git submodule update --init This change significantly simplifies our attestation code, dropping thousands of lines of rather hairy code. Notably, patatt-style attestation is incompatible with previous attestation implementations done directly in b4, but that's just as well -- we've always marked it as "experimental" and the lack of adoption was proving that we weren't on the right path. Next to come is keyring management and documentation. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r--b4/command.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/b4/command.py b/b4/command.py
index 59fefbf..ff457dd 100644
--- a/b4/command.py
+++ b/b4/command.py
@@ -42,9 +42,7 @@ def cmd_am(cmdargs):
def cmd_attest(cmdargs):
import b4.attest
- if cmdargs.mutt_filter:
- b4.attest.mutt_filter()
- elif len(cmdargs.patchfile):
+ if len(cmdargs.patchfile):
b4.attest.attest_patches(cmdargs)
else:
logger.critical('ERROR: missing patches to attest')
@@ -128,8 +126,8 @@ def cmd():
help='OBSOLETE: this option does nothing and will be removed')
sp_att.add_argument('-o', '--output', default=None,
help='OBSOLETE: this option does nothing and will be removed')
- sp_att.add_argument('-m', '--mutt-filter', action='store_true', default=False,
- help='Run in mutt filter mode')
+ sp_att.add_argument('-m', '--mutt-filter', default=None,
+ help='OBSOLETE: this option does nothign and will be removed')
sp_att.add_argument('patchfile', nargs='*', help='Patches to attest')
sp_att.set_defaults(func=cmd_attest)