Commit af61e7bf authored by Steffen Trumtrar's avatar Steffen Trumtrar Committed by Richard Weinberger

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: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Co-developed-by: default avatarJuergen Borleis <jbe@pengutronix.de>
Signed-off-by: default avatarSteffen Trumtrar <s.trumtrar@pengutronix.de>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent ba4884a6
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment