From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 731C0EE14D3 for ; Wed, 6 Sep 2023 23:23:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244736AbjIFXXF (ORCPT ); Wed, 6 Sep 2023 19:23:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244587AbjIFXXE (ORCPT ); Wed, 6 Sep 2023 19:23:04 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F82019AE for ; Wed, 6 Sep 2023 16:23:00 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-76f14d80ea6so23290785a.2 for ; Wed, 06 Sep 2023 16:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1694042579; x=1694647379; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date:from:to :cc:subject:date:message-id:reply-to; bh=KOVYO4KGfJmlJ7Sc2gzc02HVhijlhI6QaYPVbI8wZaQ=; b=Dxi2BeWdgwdIN8YZhjupYJe/oWDTT76PYFQC1skLho99k/wqgdrDdpW4UuT7tBVGqF 3gbmT1yv1ThDX8MkchXUN15JrBcabAO6TlxCgpIXZHzFP3JW7j7brwbDRVQekOLGiWtD 2jP8mVX6ed3qVhC7QYNj1mI3fLwg5JRvkJTxGtDNCMPq3XPGXkTGl0sgLnosiI9OyPJZ gQl1LhsCN2pFATvZTcRfVDd/1/6Cpk6rkaW1GD6JLE68b47g6cwgkDC4+9c/NdI0igKo HjQr8FOnXoEGM0VpqrbL/Mfp4u9bFNx7A7yAa1BHdEZDOU/M1ad8c2BOBKM+hJ4KIeDC jrEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694042579; x=1694647379; h=in-reply-to:references:subject:cc:to:from:message-id:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KOVYO4KGfJmlJ7Sc2gzc02HVhijlhI6QaYPVbI8wZaQ=; b=UyOU70UUFlfghN+6bu7mjyK/XW2bHJCEK9Vhojz5pkDZh+fvqgavLf/VmJCp+f8fuH J8hGL67Ei13ULBggYyBMJ1Y2oOmRde2VfK3rqPdIY8m43Qh2xVooI2oFOFI9KvDyraBN tdCnq7lRhddDWziC25DbF0wErq+vDTAYIcmxGCXEApEMGLEljb41EKwSKPmD7rS87tgt P7tY+FGLwJygL2s8xsGV7q2ITE7cQp7WiV4u+45rpmnuyFIgMY9v7IfPNVH0BVyxMuZB GgWZITlBtPhkkvHljfPmPsnHmEikB7KYH8VlzAMOlq758VbxqZfRoZLLDJo5Hdu27k9s amWg== X-Gm-Message-State: AOJu0YyvCaiQgdS9qA9gmt6+juulqJP2M1Pg/yC7NK2FpL8Z4olbIu/v x/DHmTusiuAkpJpe0e1zdhJb X-Google-Smtp-Source: AGHT+IFIySrBFtfHW4VE2otNW++I6blWD0r5TQBNO/aYEvyfvC2zgOpj8M47LcEvSORebSxjhgL5Bw== X-Received: by 2002:a05:620a:28cc:b0:76f:1d46:4a9f with SMTP id l12-20020a05620a28cc00b0076f1d464a9fmr23129313qkp.4.1694042579258; Wed, 06 Sep 2023 16:22:59 -0700 (PDT) Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id w27-20020a05620a149b00b0076ef3e6e6a4sm5326420qkj.42.2023.09.06.16.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 16:22:58 -0700 (PDT) Date: Wed, 06 Sep 2023 19:22:58 -0400 Message-ID: <333abafe25b35db5d770b5e459c14888.paul@paul-moore.com> From: Paul Moore To: Casey Schaufler , serge@hallyn.com, mic@digikod.net, linux-security-module@vger.kernel.org Cc: jmorris@namei.org, keescook@chromium.org, john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH v14 11/11] LSM: selftests for Linux Security Module syscalls References: <20230828195802.135055-12-casey@schaufler-ca.com> In-Reply-To: <20230828195802.135055-12-casey@schaufler-ca.com> Precedence: bulk List-ID: On Aug 28, 2023 Casey Schaufler wrote: > > Add selftests for the three system calls supporting the LSM > infrastructure. This set of tests is limited by the differences > in access policy enforced by the existing security modules. > > Signed-off-by: Casey Schaufler > --- > MAINTAINERS | 1 + > security/security.c | 2 +- > tools/testing/selftests/Makefile | 1 + > tools/testing/selftests/lsm/.gitignore | 1 + > tools/testing/selftests/lsm/Makefile | 17 ++ > tools/testing/selftests/lsm/common.c | 89 ++++++ > tools/testing/selftests/lsm/common.h | 33 +++ > tools/testing/selftests/lsm/config | 3 + > .../selftests/lsm/lsm_get_self_attr_test.c | 275 ++++++++++++++++++ > .../selftests/lsm/lsm_list_modules_test.c | 140 +++++++++ > .../selftests/lsm/lsm_set_self_attr_test.c | 74 +++++ > 11 files changed, 635 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/selftests/lsm/.gitignore > create mode 100644 tools/testing/selftests/lsm/Makefile > create mode 100644 tools/testing/selftests/lsm/common.c > create mode 100644 tools/testing/selftests/lsm/common.h > create mode 100644 tools/testing/selftests/lsm/config > create mode 100644 tools/testing/selftests/lsm/lsm_get_self_attr_test.c > create mode 100644 tools/testing/selftests/lsm/lsm_list_modules_test.c > create mode 100644 tools/testing/selftests/lsm/lsm_set_self_attr_test.c Both Serge and Mickaƫl had comments on the previous revision of this patch, it would be nice if they could review the current revision and comment. -- paul-moore.com