fs: ubifs: set s_uuid in super block to support ima/evm uuid options
Subsystems (2)
PATCH 1/1 fs: ubifs: set s_uuid in super block to support ima/evm uuid options
From: Steffen Trumtrar <[email protected]>
This is required to provide uuid based integrity functionality for:ima_policy (fsuuid option) and the 'evmctl' command ('--uuid' option).
--- fs/ubifs/super.c | 1 + 1 file changed, 1 insertion(+)
fs/ubifs/super.c +1 -0
@@ -2231,6 +2231,7 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) err = -ENOMEM ; goto out_umount; } +memcpy (&sb->s_uuid, &c->uuid,sizeof (c->uuid));mutex_unlock (&c->umount_mutex);return 0 ;
Signature · 1 line
2.20.1
Quoted 9 lines · Juergen Borleis
From: Steffen Trumtrar <[email protected]>
This is required to provide uuid based integrity functionality for:
ima_policy(fsuuid option) and the 'evmctl' command ('--uuid' option).Signed-off-by Steffen Trumtrar <[email protected]>Signed-off-by Oleksij Rempel <[email protected]>Acked-by Juergen Borleis <[email protected]>
I took this patch, thanks a lot for this but I have changed the sob-chain to:
Namely, "patch was created by Steffen Trumtrar, Oleksij Rempel and Juergen Borleis.
Steffen Trumtrar committed it and Juergen Borleis later sent it to the mailing list".
Is this right?
Signature · 6 lines
Thanks, //richard ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Hi Richard,
Am Freitag, 12. Februar 2021, 21:59:52 CET schrieb Richard Weinberger:
Quoted 17 lines · Juergen Borleis
Quoted 8 lines
From: Steffen Trumtrar <[email protected]>
This is required to provide uuid based integrity functionality for:
ima_policy(fsuuid option) and the 'evmctl' command ('--uuid' option).Signed-off-by Steffen Trumtrar <[email protected]>Signed-off-by Oleksij Rempel <[email protected]>Acked-by Juergen Borleis <[email protected]>I took this patch, thanks a lot for this but I have changed the sob-chain to:
Co-developed-by Oleksij Rempel <[email protected]>Co-developed-by Juergen Borleis <[email protected]>Signed-off-by Steffen Trumtrar <[email protected]>
Quoted 6 lines
Namely, "patch was created by Steffen Trumtrar, Oleksij Rempel and Juergen Borleis.
Steffen Trumtrar committed it and Juergen Borleis later sent it to the mailing list".Is this right?
Yes.
Quoted 2 lines
Okay. I've dropped the patch from linux-next. Juergen, please address Andy's comments and resend.
I will talk to Steffen and re-send a V2.
Thanks,
Jürgen
A message that is not in the archive (sent off-list or not yet received): CAHp75VfwD25Vfb_81eoZDG=GktSdiROtg7=2tPMDMV8k2iqdag@mail.gmail.com
Richard Weinberger
maintainerAndy,
----- Ursprüngliche Mail -----
Quoted 2 lines
Quoted 1 line
+ memcpy(&sb->s_uuid,
&c->uuid, sizeof(c->Shouldn’t it be
import_uuid()?
Hmm, I didn't know that helper.
The only user in fs/ seems to be zonefs, all other filesystems do a plain memcpy().
Do you want me do a patch that converts all users in fs/ to import_uuid()?
Thanks,
//richard
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
A message that is not in the archive (sent off-list or not yet received): CAHp75VdJZUd6YoJ26jw0oAEQ0-k6AVXBqzVhs3oFy5+mZXiSjw@mail.gmail.com
Richard Weinberger
maintainer----- Ursprüngliche Mail -----
Quoted 7 lines
Quoted 5 lines
Hmm, I didn't know that helper.
The only user infs/seems to be zonefs, all other filesystems do a plainmemcpy().Do you want me do a patch that converts all users in
fs/toimport_uuid()?Not sure about all fs, but in new code, like here I think it makes sense. Also check
export_uuid()anduuid_copy().
Okay. I've dropped the patch from linux-next. Juergen, please address Andy's comments and resend.
Thanks,
//richard
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/