linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: richard@nod.at, dedekind1@gmail.com, adrian.hunter@intel.com,
	linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
	linux-fsdevel@vger.kernel.org
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>,
	Oleksij Rempel <o.rempel@pengutronix.de>
Subject: [PATCH v2 3/3] fs: ubifs: set s_uuid in super block
Date: Tue, 11 Apr 2017 11:50:55 +0200	[thread overview]
Message-ID: <20170411095055.26328-4-o.rempel@pengutronix.de> (raw)
In-Reply-To: <20170411095055.26328-1-o.rempel@pengutronix.de>

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

This is need to provide uuid based integrity functionlity for:
imy_policy (fsuuid option) and  evmctl (--uuid option).

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Oleksij Rempel <o.rempel@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 bff1e8d6f7bd..a584b2f2b11d 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2077,6 +2077,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.11.0

  parent reply	other threads:[~2017-04-11  9:51 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11  9:50 [PATCH v2 0/3] make ubifs compatible with IMA and EVM Oleksij Rempel
2017-04-11  9:50 ` [PATCH v2 1/3] fs: ubifs: parse iversion mount option Oleksij Rempel
2017-04-11  9:50 ` [PATCH v2 2/3] fs: ubifs: update i_version on inode changes Oleksij Rempel
2017-04-11 16:05   ` Christoph Hellwig
2017-04-11 21:13     ` Richard Weinberger
2017-04-12  6:05       ` Oleksij Rempel
2017-04-12  6:08         ` Christoph Hellwig
2017-04-12  7:04           ` Oleksij Rempel
2017-04-24 15:44             ` Richard Weinberger
2017-04-11  9:50 ` Oleksij Rempel [this message]
2017-04-11 20:43   ` [PATCH v2 3/3] fs: ubifs: set s_uuid in super block Richard Weinberger
2017-04-12  5:48     ` Christoph Hellwig
2017-04-12  7:15       ` Oleksij Rempel
2017-04-24 15:47         ` Richard Weinberger
2017-04-27 22:03           ` Richard Weinberger
2017-04-28  8:53             ` Amir Goldstein
2017-05-02  5:30               ` Oleksij Rempel
2017-05-02  7:19             ` Amir Goldstein
2017-05-02  7:37               ` Richard Weinberger
2017-05-09  4:13                 ` Oleksij Rempel
     [not found]                   ` <CAOQ4uxiEGJLSGS5rK8V8GRNvf9aWqbVG5odu2=nv73xTOmvfNQ@mail.gmail.com>
2017-05-09  5:52                     ` Oleksij Rempel
2017-05-09  7:01                       ` Richard Weinberger
2017-05-09  7:08                         ` Amir Goldstein
2017-05-09  7:35                           ` Oleksij Rempel
2017-05-09  7:35                           ` Richard Weinberger
2017-05-09  7:50                             ` Amir Goldstein
2017-05-02  7:23     ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170411095055.26328-4-o.rempel@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=adrian.hunter@intel.com \
    --cc=dedekind1@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --cc=s.trumtrar@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).