[PATCH v2 0/4] ubifs: support authentication without hmac
Torben Hohn
torben.hohn at linutronix.de
Fri Jun 26 07:29:03 EDT 2020
This PQ adds support for ubifs authentication without HMAC,
which obviously only works for a read-only mount.
ubiblock and dm-verity are not supported by u-boot, and
the kernel on the target is loaded by u-boot out of the RFS.
This is a first try to implement this.
It boots fine, and the WARN_ON is not triggered.
I plan to update the docs also, but i would like to have
some positive comments on this before.
Changes since v1:
- apply comments from Sascha an revert the
ubifs_authicated_(read|write) stuff.
Use ubifs_assert(c, !c->ro_mount) instead.
- Prevent remount rw, when hmac-less authentication is used
- add missing check, for ro mode, when no auth_key_name is specified.
Torben Hohn (4):
ubifs: move #include "debug.h" above auth.c
ubifs: support authentication, for ro mount, when no key is given
ubifs: sprinkle ubifs_assert(c, !c->ro_mount) in hmac auth
ubifs: prevent remounting rw when no hmac key was given
fs/ubifs/auth.c | 62 +++++++++++++++++++++++++++++++++++++++++++++-
fs/ubifs/gc.c | 1 +
fs/ubifs/journal.c | 8 ++++++
fs/ubifs/replay.c | 1 +
fs/ubifs/sb.c | 5 ++++
fs/ubifs/super.c | 28 ++++++++++++++++++++-
fs/ubifs/ubifs.h | 12 ++++++++-
7 files changed, 114 insertions(+), 3 deletions(-)
--
2.20.1
More information about the linux-mtd
mailing list