linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options
@ 2021-02-02 12:48 Juergen Borleis
  2021-02-12 20:59 ` Richard Weinberger
       [not found] ` <CAHp75VfwD25Vfb_81eoZDG=GktSdiROtg7=2tPMDMV8k2iqdag@mail.gmail.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Juergen Borleis @ 2021-02-02 12:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: richard, linux-mtd, kernel, Steffen Trumtrar, Oleksij Rempel

From: Steffen Trumtrar <s.trumtrar@pengutronix.de>

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 <s.trumtrar@pengutronix.de>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Juergen Borleis <jbe@pengutronix.de>
---
 fs/ubifs/super.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index cb3acfb7dd1f..b990baed4de0 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -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;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options
  2021-02-02 12:48 [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options Juergen Borleis
@ 2021-02-12 20:59 ` Richard Weinberger
  2021-02-15  8:37   ` Jürgen Borleis
       [not found] ` <CAHp75VfwD25Vfb_81eoZDG=GktSdiROtg7=2tPMDMV8k2iqdag@mail.gmail.com>
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Weinberger @ 2021-02-12 20:59 UTC (permalink / raw)
  To: Juergen Borleis
  Cc: LKML, Richard Weinberger, Steffen Trumtrar, linux-mtd, kernel,
	Oleksij Rempel

On Tue, Feb 2, 2021 at 1:55 PM Juergen Borleis <jbe@pengutronix.de> wrote:
>
> From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
>
> 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 <s.trumtrar@pengutronix.de>
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> Acked-by: Juergen Borleis <jbe@pengutronix.de>

I took this patch, thanks a lot for this but I have changed the sob-chain to:

    Co-developed-by: Oleksij Rempel <o.rempel@pengutronix.de>
    Co-developed-by: Juergen Borleis <jbe@pengutronix.de>
    Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>

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?

-- 
Thanks,
//richard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options
       [not found] ` <CAHp75VfwD25Vfb_81eoZDG=GktSdiROtg7=2tPMDMV8k2iqdag@mail.gmail.com>
@ 2021-02-12 21:34   ` Richard Weinberger
       [not found]     ` <CAHp75VdJZUd6YoJ26jw0oAEQ0-k6AVXBqzVhs3oFy5+mZXiSjw@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Weinberger @ 2021-02-12 21:34 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Juergen Borleis, linux-kernel, linux-mtd, kernel,
	Steffen Trumtrar, Oleksij Rempel

Andy,

----- Ursprüngliche Mail -----
>> + 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options
       [not found]     ` <CAHp75VdJZUd6YoJ26jw0oAEQ0-k6AVXBqzVhs3oFy5+mZXiSjw@mail.gmail.com>
@ 2021-02-13 22:01       ` Richard Weinberger
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Weinberger @ 2021-02-13 22:01 UTC (permalink / raw)
  To: Andy Shevchenko, Juergen Borleis
  Cc: linux-kernel, linux-mtd, kernel, Steffen Trumtrar, Oleksij Rempel

----- Ursprüngliche Mail -----
>> 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()?
> Not sure about all fs, but in new code, like here I think it makes sense. Also
> check export_uuid() and uuid_copy().

Okay. I've dropped the patch from linux-next.
Juergen, please address Andy's comments and resend.

Thanks,
//richard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options
  2021-02-12 20:59 ` Richard Weinberger
@ 2021-02-15  8:37   ` Jürgen Borleis
  0 siblings, 0 replies; 5+ messages in thread
From: Jürgen Borleis @ 2021-02-15  8:37 UTC (permalink / raw)
  To: linux-mtd
  Cc: Richard Weinberger, LKML, Richard Weinberger, Steffen Trumtrar,
	kernel, Oleksij Rempel

Hi Richard,

Am Freitag, 12. Februar 2021, 21:59:52 CET schrieb Richard Weinberger:
> On Tue, Feb 2, 2021 at 1:55 PM Juergen Borleis <jbe@pengutronix.de> wrote:
> > From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> > 
> > 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 <s.trumtrar@pengutronix.de>
> > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> > Acked-by: Juergen Borleis <jbe@pengutronix.de>
> 
> I took this patch, thanks a lot for this but I have changed the sob-chain
> to:
> 
>     Co-developed-by: Oleksij Rempel <o.rempel@pengutronix.de>
>     Co-developed-by: Juergen Borleis <jbe@pengutronix.de>
>     Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> 
> 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.

> 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-15  8:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 12:48 [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options Juergen Borleis
2021-02-12 20:59 ` Richard Weinberger
2021-02-15  8:37   ` Jürgen Borleis
     [not found] ` <CAHp75VfwD25Vfb_81eoZDG=GktSdiROtg7=2tPMDMV8k2iqdag@mail.gmail.com>
2021-02-12 21:34   ` Richard Weinberger
     [not found]     ` <CAHp75VdJZUd6YoJ26jw0oAEQ0-k6AVXBqzVhs3oFy5+mZXiSjw@mail.gmail.com>
2021-02-13 22:01       ` Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).