diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2021-02-16 08:23:34 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-04-15 22:00:32 +0200 |
commit | af61e7bf927855e9647393f6c5ac4e411ac2041e (patch) | |
tree | cf23e40e47255e9a0b640def9aea8ebe9bc16106 /fs | |
parent | ba4884a6dbf002401081a8eb0ba85e5dc87025e1 (diff) |
ubifs: Set s_uuid in super block to support ima/evm uuid options
This is required to provide uuid based integrity functionality for:
ima_policy (fsuuid option) and the 'evmctl' command ('--uuid' option).
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>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index ddb2ca636c93..73f0ac209fb8 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -2232,6 +2232,8 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) goto out_umount; } + import_uuid(&sb->s_uuid, c->uuid); + mutex_unlock(&c->umount_mutex); return 0; |