[RFC PATCH] ima: add a knob to make IMA be able to be disabled
Gao Xiang
hsiangkao at linux.alibaba.com
Mon May 12 20:55:22 PDT 2025
Hi Coiby,
On 2025/5/13 08:14, Coiby Xu wrote:
> On Fri, May 09, 2025 at 09:03:11AM -0400, Mimi Zohar wrote:
...
>>>
>>> > I'm aware that some
>>> > store the security xattr information in a file and write it out as xattrs.
>>>
>>> If the built initramfs as a CPIO file doesn't carry xattrs, the loaded
>>> initramfs still doesn't have xattrs. I just found the initramfs could
>>> opt to use squashfs or erofs which supports xattrs but currently it's
>>> hardcoded to disable xattrs. For example, recently the dracut erorfs
>>> module also follows squashfs to disable xattrs [1]. So in the near
>>> future, I don't expect xattrs to be supported in kdump.
>>>
>>> [1] https://github.com/dracut-ng/dracut-ng/pull
>
> Sorry, I didn't notice the link is incomplete. It should be
>
> [1] https://github.com/dracut-ng/dracut-ng/pull/1296
>
>>
>> Right, so the issue isn't the initramfs root filesystem, but CPIO. Either CPIO
>> would need to be extended, which multiple people have attempted to do, or the xattrs
>> could be stored in a file and written out to the initramfs root filesystem. In fact
>> Roberto's last attempts at adding CPIO xattr support did something like that.
>>
>> https://lore.kernel.org/linux-integrity/20190523121803.21638-1-roberto.sassu@huawei.com/
>
> Thanks for introducing Roberto's work to me!
I wrote some words on initramfs vs initrd erofs on related threads:
https://lore.kernel.org/r/934af3e3-3153-40c1-9a25-7a8d08fdb007@linux.alibaba.com
https://lore.kernel.org/r/582bc002-f0c8-4dbb-8fa5-4c10a479b518@linux.alibaba.com/T/#u
The CPIO standard doesn't support xattrs, also initramfs could cause
unnecessary unpacking.
But anyway it needs more work on this stuff too.
Thanks,
Gao Xiang
>
>>
>> Mimi
>>
>
More information about the kexec
mailing list