[PATCH v2 4/4] ubifs: prevent remounting rw when no hmac key was given
Richard Weinberger
richard at nod.at
Mon Jun 29 06:52:28 EDT 2020
Torben,
----- Ursprüngliche Mail -----
>>
>> But the case that one remounts rw and provides a HAMC is handled?
>
> No. And i am not sure, whether thats a thing, we want to support.
> I would suggest, we clarify that in the message.
Yeah.
>
> One would need to check, whether c->auth_key_name is set now,
> and then instantiate c->hash_tfm.
>
> ubifs_init_authentication is not called upon remount.
> so a remount with a changed auth_key_name is not supported either.
Because it is technically not possible. We'd need both keys then.
But I agree we should reject it. Remounting is tricky...
Thanks,
//richard
More information about the linux-mtd
mailing list