Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp72797rdb; Wed, 20 Dec 2023 06:40:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9Xmn5a5zjY/suhD9FIRDEEYcxTo98LiRxmL6gL6Kx7n7luuAK1ijFZk8sTIgZTHuewLmq X-Received: by 2002:a05:6358:904b:b0:172:98ae:9a7e with SMTP id f11-20020a056358904b00b0017298ae9a7emr13493675rwf.29.1703083210788; Wed, 20 Dec 2023 06:40:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703083210; cv=none; d=google.com; s=arc-20160816; b=dcpyYdyZfGQWCBx7T36sxHtq0JH1qC5JqvlveOrCyzGhcdJwGpioCoqXPlGmG9Al8z inM8ja5CTnVSKsXRCEc+4kvdCOj58uKwFBQu8Y+Tbp/98ncl6WbX3qiYl9LqsUqo1/uy hmYRiMYFF4NDBXpJpbYQCpyZnIqEFhrFTx3tWL6U10znZsf6b6Z8aOjD2dpIV3Z3jd6k BGHmCfacPQ4jin70b9WXhOXsTytEi+YO7SD5G2RvRoJpaCO7qdPh2RiFo7bKxXhXo3MB /yZfjYilrZfM5jr6NV/Z45t1+JWs35GfNh/bnH/wbxW5LtqbJARRuOVLmsXcDFXT9bA2 LHEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=f2oUpPP2PLyXV8nPq8H1pk05VlePtZv14Y6rjtd2zCg=; fh=FyHZRsUSI+UQdiz7Y9R1E5kgcLCGFIwsCXv2HWtACOM=; b=AvQFPiQ3M6Q4QWs2h6byAhAuUf70t8JPEdke7Ojeg4o16OkqipG34I4NTQWFv6osxc axtEQkne4x3A78Q/fJvMoImCabDAaguwaJVrvTbjjWX2qqJ+27soBLqu0saTz3MLtKSq QjFfqfkjCbndSMXLNFDBkJ+LA2pk+vrx7s7qHhUxi29IQLup2YNGypFIlxWoA/PELL2E bBzt72WU3U63QwUmM956BEagMZX6jA1zwA2ZJxtoUMOGVY7pDTBqF6mbXOLIELKNcBu0 pZjop6c6Ck9bXEhULli2s/F8lirsbyt5ofudiwgVTdw7dpe5+MAMwW2pMVX7JQt+vjMo nayA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OHQPpxYe; spf=pass (google.com: domain of linux-kernel+bounces-7070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f1-20020a654001000000b005c6ec7ede98si20830686pgp.875.2023.12.20.06.40.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 06:40:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OHQPpxYe; spf=pass (google.com: domain of linux-kernel+bounces-7070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9D42BB22EA2 for ; Wed, 20 Dec 2023 14:39:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9719E3D3A3; Wed, 20 Dec 2023 14:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OHQPpxYe" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 5E72C3D98F for ; Wed, 20 Dec 2023 14:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3366827ca79so3172047f8f.3 for ; Wed, 20 Dec 2023 06:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1703083147; x=1703687947; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=f2oUpPP2PLyXV8nPq8H1pk05VlePtZv14Y6rjtd2zCg=; b=OHQPpxYeWLJGbaLz8p4BpvQ7NyjQlaTkaTUXBQAJmGat/HsrBblxEiurb1sc8sakWX e3lNb0YVh3gmpab9htQuUvGKOeA6SJN6cKWFvn32zxzbh8c+WHYLhSQQVeOImlBf2vds 8WA/IlsZzb5KMh2e6A+jmmhwSz0J9bZOQSAehYkyBMkR/LgMpB5TLhwqnpjTzsPVkwrC bfcXv7VWM/UEURiVSYwtiYkFJM7rQ6BhWcTMt+GYL6J69Xe6sRQNkNy+COYyqxckmB6o 8Ec5pE5aTqNXMNg4dj4Lo/w5H2Uyu8snvlJ9demvEMwQCDiL4w+x0mXPxYlYagZGuRTt BPXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703083147; x=1703687947; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f2oUpPP2PLyXV8nPq8H1pk05VlePtZv14Y6rjtd2zCg=; b=tiquBWdym9ZfyX6EYWzZha95GJOVeZkSVqwh2mts7+znR2qqqYybXqaVch4nvUvIKH CE8ZDzud9ZQJ4vQFI0cRMofPU2rN9tPmWeGvbkthN2F+A0y0TCXI2bDZx/CSU7rnhqBf GF8dIgQ3Dz+ETR9K7ZiCEb/yHcefw8/5mUic26yCSwgN2SdGgTmE10XbaLAyvPLyIQwm ALN8By0p8K7Me7tnsNw1LQ+RWCrFZSjrUbayYn60VzPRTWL5d+rrGC8YAr/g2srEH354 RNNCL6WHtL/Icly5p4gJGXE90YJuNWCvDlpB59Le+RxpdTc3Xy6uusw+Wc4i3/CuGhmv Py9Q== X-Gm-Message-State: AOJu0YwB5lVC/z+FpA3dRnzOEBcXFvgJdHohwi0eFxXGqCZaBPQLh9fE V1Ah02YHjRcPDrB376sm+6SJ8Z2y61Y8VKMLyKLYWQ== X-Received: by 2002:a5d:47c5:0:b0:336:5b5d:245f with SMTP id o5-20020a5d47c5000000b003365b5d245fmr5663984wrc.140.1703083147437; Wed, 20 Dec 2023 06:39:07 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230906102557.3432236-1-alpic@google.com> <20231219090909.2827497-1-alpic@google.com> In-Reply-To: From: Alfred Piccioni Date: Wed, 20 Dec 2023 15:38:31 +0100 Message-ID: Subject: Re: [PATCH] security: new security_file_ioctl_compat() hook To: Paul Moore , Stephen Smalley , Eric Paris Cc: linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, stable@vger.kernel.org, selinux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" >> By the way, for extra credit, you could augment the ioctl tests in the >> selinux-testsuite to also exercise this new hook and confirm that it >> works correctly. See >> https://github.com/SELinuxProject/selinux-testsuite particularly >> tests/ioctl and policy/test_ioctl.te. Feel free to ask for help on >> that. > I do like extra credit. I'll take a look and see if it's something I > can tackle. I'm primarily doing ad hoc checks on Android devices, so > I'm unsure how easy it will be for me to run the suite. I'll get back > to you shortly on that. In response to myself, I unfortunately won't have time to do the testing updates this year. If someone else wants to help, that'd be great! Otherwise, I'll take a look next year after vacation and see if I can take a crack at it. Thanks!