[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210202124838.30805-1-jbe@pengutronix.de>
Date: Tue, 2 Feb 2021 13:48:38 +0100
From: Juergen Borleis <jbe@...gutronix.de>
To: linux-kernel@...r.kernel.org
Cc: richard@....at, linux-mtd@...ts.infradead.org,
kernel@...gutronix.de,
Steffen Trumtrar <s.trumtrar@...gutronix.de>,
Oleksij Rempel <o.rempel@...gutronix.de>
Subject: [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options
From: Steffen Trumtrar <s.trumtrar@...gutronix.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@...gutronix.de>
Signed-off-by: Oleksij Rempel <o.rempel@...gutronix.de>
Acked-by: Juergen Borleis <jbe@...gutronix.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
Powered by blists - more mailing lists