[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <29f45743-ba43-c2ec-4494-7253170ab9ce@huawei.com>
Date: Tue, 31 Jan 2023 10:05:22 +0800
From: xiujianfeng <xiujianfeng@...wei.com>
To: Mimi Zohar <zohar@...ux.ibm.com>, <dmitry.kasatkin@...il.com>,
<paul@...l-moore.com>, <jmorris@...ei.org>, <serge@...lyn.com>,
Christian Brauner b <brauner@...nel.org>
CC: <linux-integrity@...r.kernel.org>,
<linux-security-module@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] evm: call dump_security_xattr() in all cases to
remove code duplication
On 2023/1/30 20:17, Mimi Zohar wrote:
> [Cc: Christian Brauner <brauner@...nel.org>]
>
> On Mon, 2023-01-30 at 12:02 +0800, xiujianfeng wrote:
>> Hi,
>>
>> On 2023/1/30 0:15, Mimi Zohar wrote:
>>>> @@ -254,15 +264,9 @@ static int evm_calc_hmac_or_hash(struct dentry *dentry,
>>>> if (is_ima)
>>>> ima_present = true;
>>>>
>>>> - if (req_xattr_value_len < 64)
>>>> - pr_debug("%s: (%zu) [%*phN]\n", req_xattr_name,
>>>> - req_xattr_value_len,
>>>> - (int)req_xattr_value_len,
>>>> - req_xattr_value);
>>>> - else
>>>> - dump_security_xattr(req_xattr_name,
>>>> - req_xattr_value,
>>>> - req_xattr_value_len);
>>>> + dump_security_xattr(req_xattr_name,
>>>> + req_xattr_value,
>>>> + req_xattr_value_len);
>>>> continue;
>>>> }
>>>> size = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, xattr->name,
>>>
>>> Hm, this patch doesn't apply properly.
>>
>> I noticed that the patch fails to apply on linux master, however this
>> patch is meant for linux-next, would you please maybe have a look?
>
> I wasn't aware of the change. However, merge conflicts should not be
> "fixed", but mentioned immediately after the patch break line ("---") .
> FYI, this merge conflict is a result of commit 4609e1f18e19 ("fs: port
> ->permission() to pass mnt_idmap").
>
> Patches for the linux-integrity branch should be based on the next-
> integrity branch.
Thanks mimi, I assume you mean next-integrity branch on
https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git/,
new patch already sent.
Powered by blists - more mailing lists