From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 191343AB28E for ; Wed, 13 May 2026 18:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778697378; cv=none; b=Mn4z6qucAKs3IdWrjATNUD0ZtaCcwh4t2IE2q/Uq4aQk4eiaXPbl4esDxDAiarnykv80IT7VTk1MfmB1YUyZ9Jo/HFyNHXsENeoc/3uYwykVb4zuAt4Zg+0Q0aXxmwWP1V06q932HoYZ49PjCHQZ3OZrUV7zHfgbvzpbvlKPAiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778697378; c=relaxed/simple; bh=EGzWceiAVeeSBnRWldnrtoBTzG8f5fZR6iZziGoTu4A=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Subject: References:In-Reply-To; b=KKZ4LZPsyNMo7nWSCDAmV2yOJd5spHJh/hAHOIh4yJq5iqudSfwM1SpJmnP9Qu8EsbJtdQT/QyHDnegUO+QY0dgjintfyH+3UaKnKsA8rfHVBjwn8LRMOFc5QaaPLyX6KUYwCNrX83uD0lhPbU3oGgvglUYFpPXd7KQBvvcGvjA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=Ynx7Z4Lj; arc=none smtp.client-ip=209.85.219.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="Ynx7Z4Lj" Received: by mail-qv1-f46.google.com with SMTP id 6a1803df08f44-8acb09ddbf6so107920976d6.2 for ; Wed, 13 May 2026 11:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1778697376; x=1779302176; darn=vger.kernel.org; h=in-reply-to:references:subject:to:from:content-transfer-encoding :mime-version:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=6Lovk2GB7TQrI5ucvuQmmBzaE8ASoKYdV2IJHUjIv4o=; b=Ynx7Z4Ljie1JEomghn7GlULS7IhGgd2OagVENW1wPLCvZRScYzUpNdeVLtI24noRpc WNIj+KqksgMw40fBxE6gveV8VEplGokq04TM1GTe9/7whTW+hB7R/M1FEcy46QJ1nIUh 7ac2mnOYCxaG1x6/okZLQ8zAoySoCBIkRnRw0efKl3ZevCt6uU1U0impaQkdQ9nXO/3c Oxm+hWns60n8b95RQrnkijukTwnCiTdfkrJSboyzP6VrCr8kmb6L1sFwrQSAD1GsN6PI xkZ4g11sk2AwYC8Nrbi+mp7aTaC2WnA7KeFNhXVKaU/I13NZj0gK5IIKTSPCTfvNlOKh rxyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778697376; x=1779302176; h=in-reply-to:references:subject:to:from:content-transfer-encoding :mime-version:message-id:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6Lovk2GB7TQrI5ucvuQmmBzaE8ASoKYdV2IJHUjIv4o=; b=MsZKzet42SZCPyWvfRYgn46ZbrP2+mS23pbAdm+MEWcI7vfuAOvU43qtxnZJ9MEtMb G+mZx4PHKoGLJa+q029b1NASkl7fyzS83r/kGtdgQEkK/l6vstbPCLj1X7MPFKUeFunK NXuuNpwauDAi71qGnigPlPiY4IzuWkGuXQF6FL1TYjlaDfLBOO9G+wQy6h/UaLVtQmcH raL3QDJmwHSJMoL3g9Gb2tbJe/QSybFoA2HsVCto0EZZLLByaNVDo2azOVaaazituEJl 2jCgdisr6Eg5Po5JS4wLVbQZequq9SqZOl5rmw4KJrwNTQxCYIyENT8MDAAkVpTAaDIr S5+g== X-Forwarded-Encrypted: i=1; AFNElJ/wwVikzfxRKKGq4OurA0B3w0zsgSibnEv2OAZjuMN6vm+LUVoSQy1Le8lYt3qu8JPSH24cqizZIrYAT+s=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1EMOhG+5JBtgnw9h1sojveTAy/K3716cqUZj1Woz5VogKl5bz Q2k0YQI519loP006AgXY06nU8xoDjMc1QHqj6w2tGVoU6SC5YVx1hWOsgVs/tHvMxA== X-Gm-Gg: Acq92OE3TLOYuYR9+0Bm/wKR9XzBwCV1esaiDJ5SMw9aOkXuYmnPNSdyqobnKBYSMwn YqIFQ2ez9OaSh/ChdSqvWsEGK3MKEGDAqTO+e2kOQtlo0nzdhpkRcIZInWVXRpzYgT7299kt03H pzLQIJeKdcbwLudnnRLUrM5PEMmFKx93jhiQxmwixPfdbRikjD7d5GpQKk9xoJwne4XMMpLlImE yOBvrbvM2GoSHJ+T3C1gUTr5SC1UbfaGbiv+bBxPHhsu6AKkVd7GeIZcwSYPGni4h4NJ/kiUucd Kew17MpwczfrK1vCVYdNdcGANnPOw0WoBW2eT3b4lfEY/U56KJAOpK8vAgp99pu2Y/YiWMujc83 aAAQCOrA+fn9I1kic6ie4+yM77ILq3StEAxcSnjp1aaxVEhamcczkR8UKwx5v3HwQ6/TGr4KoWC 24yNycv/NHBgJLZFbZMDnW4cAGNRbEhyCOIKt+NDc528YWIIQe/iRXrPWb+kCFdov8l+b6 X-Received: by 2002:a05:6214:469d:b0:89c:cacd:244a with SMTP id 6a1803df08f44-8c7b9e6573bmr74418346d6.5.1778697376105; Wed, 13 May 2026 11:36:16 -0700 (PDT) Received: from localhost (pool-71-126-255-178.bstnma.fios.verizon.net. [71.126.255.178]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8c90bb8241dsm2941076d6.34.2026.05.13.11.36.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2026 11:36:14 -0700 (PDT) Date: Wed, 13 May 2026 14:36:13 -0400 Message-ID: <426bd02f7870a8af23035d506a50de78@paul-moore.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: pstg-pwork:20260512_1604/pstg-lib:20260513_1343/pstg-pwork:20260512_1604 From: Paul Moore To: Blaise Boscaccy , "Blaise Boscaccy" , "Jonathan Corbet" , "" , "James Morris" , "Serge E. Hallyn" , =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , =?UTF-8?q?G=C3=BCnther=20Noack?= , "Dr. David Alan Gilbert" , "Andrew Morton" , James.Bottomley@HansenPartnership.com, dhowells@redhat.com, "Fan Wu" , "Ryan Foster" , "Randy Dunlap" , linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, "Song Liu" Subject: Re: [PATCH v7 6/10] security: Hornet LSM References: <20260507191416.2984054-7-bboscaccy@linux.microsoft.com> In-Reply-To: <20260507191416.2984054-7-bboscaccy@linux.microsoft.com> On May 7, 2026 Blaise Boscaccy wrote: > > This adds the Hornet Linux Security Module which provides enhanced > signature verification and data validation for eBPF programs. This > allows users to continue to maintain an invariant that all code > running inside of the kernel has actually been signed and verified, by > the kernel. > > This effort builds upon the currently excepted upstream solution. It > further hardens it by providing deterministic, in-kernel checking of > map hashes to solidify auditing along with preventing TOCTOU attacks > against lskel map hashes. > > Target map hashes are passed in via PKCS#7 signed attributes. Hornet > determines the extent which the eBFP program is signed and defers to > other LSMs for policy decisions. > > Signed-off-by: Blaise Boscaccy > Nacked-by: Alexei Starovoitov > --- > Documentation/admin-guide/LSM/Hornet.rst | 323 +++++++++++++++++++++ > Documentation/admin-guide/LSM/index.rst | 1 + > MAINTAINERS | 9 + > include/linux/oid_registry.h | 3 + > include/uapi/linux/lsm.h | 1 + > security/Kconfig | 3 +- > security/Makefile | 1 + > security/hornet/Kconfig | 13 + > security/hornet/Makefile | 7 + > security/hornet/hornet.asn1 | 12 + > security/hornet/hornet_lsm.c | 352 +++++++++++++++++++++++ > 11 files changed, 724 insertions(+), 1 deletion(-) > create mode 100644 Documentation/admin-guide/LSM/Hornet.rst > create mode 100644 security/hornet/Kconfig > create mode 100644 security/hornet/Makefile > create mode 100644 security/hornet/hornet.asn1 > create mode 100644 security/hornet/hornet_lsm.c Merged into lsm/dev, thanks. -- paul-moore.com