lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHC9VhQxhe6Gqjzri+SXi_OdW_7tSM06A7M9_O=FPef1AsuTkA@mail.gmail.com>
Date: Tue, 11 Mar 2025 11:14:08 -0400
From: Paul Moore <paul@...l-moore.com>
To: joeyli <jlee@...e.com>
Cc: KP Singh <kpsingh@...nel.org>, linux-kernel@...r.kernel.org, 
	linux-security-module@...r.kernel.org, bp@...en8.de, sfr@...b.auug.org.au, 
	peterz@...radead.org, nathan@...nel.org, Jiri Kosina <JKosina@...e.cz>, 
	Michal Suchanek <msuchanek@...e.com>
Subject: Re: [PATCH] init/main.c: Initialize early LSMs after arch code

On Tue, Mar 11, 2025 at 9:37 AM joeyli <jlee@...e.com> wrote:
>
> Hi KP,
>
> On Thu, Aug 01, 2024 at 07:17:47PM +0200, KP Singh wrote:
> > With LSMs using static calls, early_lsm_init needs to wait for setup_arch
> > for architecture specific functionality which includes jump tables and
> > static calls to be initialized.
> >
> > This only affects "early LSMs" i.e. only lockdown when
> > CONFIG_SECURITY_LOCKDOWN_LSM_EARLY is set.
> >
> > Fixes: 2732ad5ecd5b ("lsm: replace indirect LSM hook calls with static calls")
> > Signed-off-by: KP Singh <kpsingh@...nel.org>
>
> I have tested acpi table override function by
> CONFIG_ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD option. As this patch
> description, the early LSM can NOT lockdown acpi table override in early
> boot stage now.

It's been years since I've had to an ACPI DSDT override, but just so
I'm clear, this replacement table needs to be bundled in the initrd,
yes?  Assuming that's the case, I think that's likely okay as anyone
who cares enough about kernel integrity to run Lockdown should also be
protecting the kernel/initrd with a firmware and bootloader chain that
ensures only authorized images are booted.  If the user doesn't put
any protections in place to ensure only authorized kernels/initrds are
booted, Lockdown is a bit silly anyway.

> Do you have any plan to fix the early lockdown LSM? Or I missed any fix
> patch in kernel mailing list?

-- 
paul-moore.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ