From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 AF4F03ACA4C for ; Wed, 13 May 2026 18:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778697392; cv=none; b=rFp0qSZzuTQo6Rz4YHnJTvoPv0XxK2RgZzdtO8G5dfvkr7lbG1DirlAGP/qTbmtfCfubqY8dm97BUtnlnzkWw8inCbU0AVY/rHqPVUxcEM5n2JJOMfjclMtZHAyCcQ7GTIE/Cua9fbSUnyaYZ9qerwHAXz8pQn65eT+SRD6ZedA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778697392; c=relaxed/simple; bh=NXfuPJC4WSBHlTygHezAndhnrlRtJXLP/Fq/2xUcvRE=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Subject: References:In-Reply-To; b=gkT7cOfLnylVKKC0GtaqDKNMgTLOodDV4nsdji/J+/+WYHmVG9AGR8465r+CBrJQFJB5id0cib++Kha0Q2hNCpqfziHnsV1w+wIDlj8wWt27cPkwrGkoTfSUgk35i4niYwKhel2V7zdee25v9GsjmYZFrKfwAMF1LB3UTXxL+6w= 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=DSYTfoqs; arc=none smtp.client-ip=209.85.222.179 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="DSYTfoqs" Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-8cb40149037so661121285a.2 for ; Wed, 13 May 2026 11:36:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1778697390; x=1779302190; 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=GOF9niRN6Jvg5hWvhCYadN/BxIKdMgGJZ26cseYyxbc=; b=DSYTfoqsiT7AF84hz15ZZiMdeYslCXcIBpkQAP+JPkf4C24XRXdixXbZXftKA1Zv2q IRyUf9E0xyDQI92VjhlwvOFE2Kq09cxCGzagVQ7TnKtSLPnJUgsGvGx4SQdVLhJLynTO fTveQOWMV2ICb9h/0dBqMqENiXFDWWZvJcH8s2ZOU1+mObl82vfalhoUrPfcoIsogv+E KoBYnqOsuhVNJm+bU8H8bH1kpoR4SArDWlkil7yrH/v6lpfHpCjm/nOdEk6JqtxKt34V 4JzlqsDTFJGYMjvwuWpwTtv10wZVaO1aoS876YgYCyyzNwbC+ouNmliGhzo0jO+RQ5/l xrFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778697390; x=1779302190; 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=GOF9niRN6Jvg5hWvhCYadN/BxIKdMgGJZ26cseYyxbc=; b=CZLwmclpgBY0lTILML6xtTe4bL8jwfSyGpyoiBwwHLEVN9UiswNte8UJnsJOUk8X7e pEpJG6qfnUYhENyabn7N5r3USVsg9U9F7OirxSbXF/gkYhc4bPfsdlfKGEiNW0D21Ys2 NdIfVt4MieQl+RdWBlA7tw28xDcyDCdEDR4DiWomlPQbo3yJI9LNPMguKIghGXvIiXwQ mitJMAGI0hM9WNrg9cgNBzY9jXGha4QWW5PdvCMKYcsl+C+WxJ7zulFdmUt6xLgd78Hw jSg+trlbr5ZU+UupRd2W7CB6BgEaYVQMX4872djt9UuKnPt4/HdJ7MEtqmbCGh+21W5G KOCw== X-Forwarded-Encrypted: i=1; AFNElJ9KssIbQku+Vilhdpf2Nt/1dCkxP4o/TCWGDgPJr2MXq6KR9fYORMvopz5eR55QeBzaFHdz6H1M1Lk5pMc=@vger.kernel.org X-Gm-Message-State: AOJu0YzOo/65Kxt5v7b1BEZuDicpiIuIivt2dSmVfDilbooyvVEqKYOg suhUlKb0gdn7xSptWgAHfddNFqaDOyiQz6z0hLM0cdplpzIZWa4KRf4eejQ6rSn+uA== X-Gm-Gg: Acq92OEVlapW+KZxgRrzH5J7dhOFFdaxB+4aqolWPfjyQT85aLz+c/iNjuslwspoWOn 5Vx8Jfbckh70BiaqGYU5B+h7aX+2DV+b3Nx0b9AHgnY3zsfne+DO6OmQwFgTJ8mH2eMfR14zHgq p12s48OUKXB8cROmcFyZ8PrTJwxO9EYgdhRl+8yumhi/noZgpy1vDlVbS+76pHF7Rdjs0lEWT8e j/f0xOFb6wUvidEjMyxQOG6G45daNKBM6WYWE8swEmIETGNg2EzZxKIs2f5zTEcY4qb0kZ6jmGt iChxLpHrDdNraYJVoBn1ZEqgfrPuqic1e9fSZBMIxoIZFpDa1RL0R1aVxno5hqJCAH2UdD/e/1+ nuDqgcshf4MDzvl6LcQrAZ1Jdi18WW4FGpNLnYU+/KVzp3B2kLv3+mwCUCoBxR5pAmhfmpktiuy TxVCeB1RmRWJ/lCKw+IVfgtZE1lZvYuj2ZK2HnUj46P5+39xzgMzcxUyvilt8mQBLc4GQt X-Received: by 2002:a05:620a:2682:b0:8e8:bedd:14b7 with SMTP id af79cd13be357-90f89668be9mr690867785a.22.1778697389597; Wed, 13 May 2026 11:36:29 -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 af79cd13be357-910bab32bd0sm34033485a.14.2026.05.13.11.36.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2026 11:36:27 -0700 (PDT) Date: Wed, 13 May 2026 14:36:26 -0400 Message-ID: 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 10/10] ipe: Add BPF program load policy enforcement via Hornet integration References: <20260507191416.2984054-11-bboscaccy@linux.microsoft.com> In-Reply-To: <20260507191416.2984054-11-bboscaccy@linux.microsoft.com> On May 7, 2026 Blaise Boscaccy wrote: > > Add support for the bpf_prog_load_post_integrity LSM hook, enabling IPE > to make policy decisions about BPF program loading based on integrity > verdicts provided by the Hornet LSM. > > New policy operation: > op=BPF_PROG_LOAD - Matches BPF program load events > > New policy properties: > bpf_signature=NONE - No Verdict > bpf_signature=OK - Program signature and map hashes verified > bpf_signature=UNSIGNED - No signature provided > bpf_signature=PARTIALSIG - Signature OK but no map hash data > bpf_signature=UNKNOWNKEY - The keyring requested by the user is invalid > bpf_signature=UNEXPECTED - An unexpected hash value was encountered > bpf_signature=FAULT - System error during verification > bpf_signature=BADSIG - Signature or map hash verification failed > bpf_keyring=BUILTIN - Program was signed using a builtin keyring > bpf_keyring=SECONDARY - Program was signed using the secondary keyring > bpf_keyring=PLATFORM - Program was signed using the platform keyring > bpf_kernel=TRUE - Program originated from kernelspace > bpf_kernel=FALSE - Program originated from userspace > > These properties map directly to the lsm_integrity_verdict enum values > provided by the Hornet LSM through security_bpf_prog_load_post_integrity. > > The feature is gated on CONFIG_IPE_PROP_BPF_SIGNATURE which depends on > CONFIG_SECURITY_HORNET. > > Signed-off-by: Blaise Boscaccy > Acked-by: Fan Wu > --- > Documentation/admin-guide/LSM/ipe.rst | 162 +++++++++++++++++++++++++- > Documentation/security/ipe.rst | 68 +++++++++++ > security/ipe/Kconfig | 15 +++ > security/ipe/audit.c | 15 +++ > security/ipe/eval.c | 93 ++++++++++++++- > security/ipe/eval.h | 11 ++ > security/ipe/hooks.c | 63 ++++++++++ > security/ipe/hooks.h | 15 +++ > security/ipe/ipe.c | 14 +++ > security/ipe/ipe.h | 3 + > security/ipe/policy.h | 14 +++ > security/ipe/policy_parser.c | 27 +++++ > 12 files changed, 498 insertions(+), 2 deletions(-) Merged into lsm/dev, thanks. -- paul-moore.com