From: Steffen Trumtrar Date: Tue, 16 Feb 2021 07:23:34 +0000 (+0100) Subject: ubifs: Set s_uuid in super block to support ima/evm uuid options X-Git-Tag: accepted/tizen/unified/20230118.172025~7293^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af61e7bf927855e9647393f6c5ac4e411ac2041e;p=platform%2Fkernel%2Flinux-rpi.git 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 Co-developed-by: Juergen Borleis Signed-off-by: Steffen Trumtrar Reviewed-by: Andy Shevchenko Signed-off-by: Richard Weinberger --- diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index ddb2ca6..73f0ac2 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;