From patchwork Wed Oct 25 09:42:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Michael_Wei=C3=9F?= X-Patchwork-Id: 157983 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2479917vqx; Wed, 25 Oct 2023 02:46:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYNSVDInrBGdv7Aeb6s377ja8lMQlucj14eevMv1DhVUo+bWsOYY/I2qGZNYWP9H8hr11F X-Received: by 2002:a05:690c:10c:b0:5a7:b560:12df with SMTP id bd12-20020a05690c010c00b005a7b56012dfmr16524608ywb.8.1698227187797; Wed, 25 Oct 2023 02:46:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698227187; cv=pass; d=google.com; s=arc-20160816; b=XbKHUxUe4IanrbQrtxKMKc7qipV9/TPh8K8AlU5wjY7vVJxjjwtOWjdidlvl344AwA NMGbzl0UsDj6aO1WUAeyo30SmwJkv8lvkEJPbawvlIpeLQUH90kkQJqKKNRW98vgFlgd bF0EzkV1QK6gR2kCSDHmf3QwjjfyZ/Zpl80S6AU7lJGmKZO0RAP3jx9x+UJAXOP2Pcj/ 6JzqBU9M+c4TvG5VEYc0TTdUZIbbisFpIGHawx7IS7DLjA9BmFD0se7kMMgeylsvRc4P y3Gp1kH45xOldcGOptlX6OBI3mGhTX7mWHbsmEiPLdcOUXLiQMsNGyysUNFsnTA+UxeE hRaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:ironport-hdrordr:ironport-data:ironport-phdr :ironport-sdr:ironport-phdr:dkim-signature; bh=+wYA09Ez/WIUe3DVS+b/j50bQggTuJu8rqzdBeEY/5g=; fh=U9u/esc0XBb8N/pVu7kudxJPwEQ0AyrThcmR2LpYyxQ=; b=yZPqtSI1yp6GsZzxq43+f6xRNaDPkso4nhi6ftkbVU9KHGlVbRph7b6kUGa7ObYWEi 73zP04ZyBpex022vMW12X5a2mo3suR3X9b0U6awAbTDCW0d5DytvXM5fUXdD4zBckEpc zdtiMKdbJPKqPprAXsODjzcx163PHfPbaFmoRCzwsDV5Nmx1+8a/2G/IUibyjNS/IQ3t tlw1QGsu/jFDtkDwrkhBiUV4mjuOFfrNa+itv33486Mq3wUh6PYIVjRQHcplS/R5G3A0 r5skLptPA7EoaO0CbbQCik5FCM2CxLd4uikjfzLM2NUr3E0yTPeVbFYj6hrvSnFPKse9 UBpQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@aisec.fraunhofer.de header.s=emailbd1 header.b="i5xXELR/"; dkim=pass header.i=@fraunhofer.onmicrosoft.com header.s=selector2-fraunhofer-onmicrosoft-com header.b=Yp8EZet+; arc=pass (i=1 spf=pass spfdomain=aisec.fraunhofer.de dkim=pass dkdomain=aisec.fraunhofer.de dmarc=pass fromdomain=aisec.fraunhofer.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aisec.fraunhofer.de Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id v4-20020a818504000000b00579e8b962adsi10668092ywf.175.2023.10.25.02.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=fail header.i=@aisec.fraunhofer.de header.s=emailbd1 header.b="i5xXELR/"; dkim=pass header.i=@fraunhofer.onmicrosoft.com header.s=selector2-fraunhofer-onmicrosoft-com header.b=Yp8EZet+; arc=pass (i=1 spf=pass spfdomain=aisec.fraunhofer.de dkim=pass dkdomain=aisec.fraunhofer.de dmarc=pass fromdomain=aisec.fraunhofer.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aisec.fraunhofer.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9A1168075B2D; Wed, 25 Oct 2023 02:45:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343502AbjJYJpR (ORCPT + 26 others); Wed, 25 Oct 2023 05:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234733AbjJYJo6 (ORCPT ); Wed, 25 Oct 2023 05:44:58 -0400 Received: from mail-edgeka24.fraunhofer.de (mail-edgeka24.fraunhofer.de [IPv6:2a03:db80:4420:b000::25:24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B574193; Wed, 25 Oct 2023 02:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aisec.fraunhofer.de; i=@aisec.fraunhofer.de; q=dns/txt; s=emailbd1; t=1698227060; x=1729763060; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=zc6r04OKntnGPN69WQoGkeaQsx/13umKCd1ZT4QXIiI=; b=i5xXELR/bcFcu/siOxROTO9mw47uDR4k5ge6en+opDR3Pk3K9TiA+YFY z7VnDCwyfLbXW8kBURAKnNXn62VzyUbzFbwzfgPuYDmWzwEecrU60ysSB jKCOeGD3KAHX+nLv1wX8rIzIM5bMV1Cqe3yFIveMXXju9Ov2plzgfWD7h TmWzX5RsiXq6Kq4Ga3wEW32Xk7/I8SKYhO7x+bUaoKuKa7eNfjDn6cV3d hhBePM55eb2TVBQpti8zBn9JlmMmZT3AZ4Sh1C8P9qSJV+r8E9o1A/tE3 Tu+5bTJP09GJbt+vGbLtJUMcD8/lfcCZL9y+cWvOBfDgYdV8fY8eAhGFW g==; X-CSE-ConnectionGUID: HgCSW4cHRT2lw+NhGAh6tg== X-CSE-MsgGUID: 8wZWZV3fSdCjnpLJoco2Qw== Authentication-Results: mail-edgeka24.fraunhofer.de; dkim=pass (signature verified) header.i=@fraunhofer.onmicrosoft.com X-IPAS-Result: A2GuAABB4jhl/xmnZsBaHAEBAQEBAQcBARIBAQQEAQFAgT4EAQELAYIQKIJXhFORXpgmhAQqglEDVg8BAQEBAQEBAQEHAQFEBAEBAwSEfwKHGic3Bg4BAgEDAQEBAQMCAwEBAQEBAQECAQEGAQEBAQEBBgYCgRmFLzkNhACBHgEBAQEBAQEBAQEBAR0CNVQCAQMjBAsBDQEBNwEPJQImAgIyJQYBDQWCJliCKwMxshh/M4EBggkBAQawHxiBIIEeCQkBgRAuAYNbhC4BhDSBHYQ1gk+BSoEGgTd2hFiDRoJog3WFPAcygiKDLymLfoEBR1oWGwMHA1kqECsHBC0iBgkWLSUGUQQXFiQJExI+BIFngVEKgQM/Dw4RgkIiAgc2NhlLglsJFQw1BEl2ECoEFBeBEW4FGhUeNxESFw0DCHYdAhEjPAMFAwQ0ChUNCyEFVwNEBkoLAwIaBQMDBIE2BQ0eAhAtJwMDGU0CEBQDOwMDBgMLMQMwV0cMWQNsHxocCTwPDB8CGx4NMgMJAwcFLB1AAwsYDUgRLDUGDhtEAXMHnU2CbQE2RAkKAYEwVVIclhIBrnkHgjGBXqEJGgQvlyuSTy6HRpBIIKI+QoUIAgQCBAUCDgiBeYIAMz5PgmdSGQ+OIAwWg1aPe3QCOQIHAQoBAQMJgjmJEgEB IronPort-PHdr: A9a23:5HLOhRIdfDTsVc70ZdmcuDdnWUAX0o4cQyYLv8N0w7sbaL+quo/iN RaCu6YlhwrTUIHS+/9IzPDbt6nwVGBThPTJvCUMapVRUR8Ch8gM2QsmBc+OE0rgK/D2KSc9G ZcKTwp+8nW2OlRSApy7aUfbv3uy6jAfAFD4Mw90Lf7yAYnck4G80OXhnv+bY1Bmnj24M597M BjklhjbtMQdndlHJ70qwxTE51pkKc9Rw39lI07Wowfk65WV3btOthpdoekg8MgSYeDfROEVX bdYBTIpPiUO6cvnuAPqYSCP63AfAQB02hBIVkva3TiiD7rj9RTbi+cm9BehfsexT+1sUw2t4 Jt2agK4kj4VOxQ03VCQ18Ml38c56Bj0lgQv7rzZfMK2NthmfKfRc/UFHDRIZMoNbyhuXoOgQ bQDC7AQOudSvbajjFUUoDiTPwqiG83UwDJzoXXd4LQ66uInVifZ/Qp+P/Ict3v5j4zzH7cRD d64yIPi4DbgV+193R2stKn4Sw4ThNOUdqhUf9iJzRZyEDHAtASIsKzAFje5/d82sGOEt/Rva LqV1XcssyNU+Gadm54Uh67j15w0zH2Y5HhC7J8fZoKRHR0zcZulCpxWryaAK85sT9g/R309o C8h0e5uUf+TeSELzNEqyxHSaPXdL86G+Bv+UuaWLzpiwn5oK/qzhBe3pFCp0fa0FtK131BDs jdfn5HSu2oM2R3e5onPSvZ08kq7nzfa/w7J4/xCIUc6mLCdLJgkw7UqkYEUv1iFFSjz8Hg= X-Talos-CUID: 9a23:+aI0MmxVISnN7Tpc/YDGBgU0FeseTSHW7E3seUunSkBpZ5SVF0OfrfY= X-Talos-MUID: 9a23:6rJ+UwZu/MDiK+BT5yDeuwNcb8lT74+sDlgps5INvJO9Knkl X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.03,250,1694728800"; d="scan'208";a="1802519" Received: from mail-mtadd25.fraunhofer.de ([192.102.167.25]) by mail-edgeka24.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:43:08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BVwoVvJJJ IronPort-HdrOrdr: A9a23:udbVVazkvSrN4imnzHDpKrPwKL1zdoMgy1knxilNoHtuA6qlfq GV7ZMmPHrP4gr5N0tPpTntAsa9qBDnhPxICOsqTNOftWDd0QPFEGgF1/qA/9SJIUbDH4VmtJ uIHZIfNDShNzVHZYST2njcL+od X-Talos-CUID: 9a23:gFI0fmkzMFTiXhUi93bioQjiUS7XOXuawCzfCEvjM1YzUYHWdliA5Y4nsPM7zg== X-Talos-MUID: 9a23:GpZjHghM8gIT20o7nhiXPsMpafYz/byNLV00r6oPhsKbDANbAnSAk2Hi X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.03,250,1694728800"; d="scan'208";a="188491600" Received: from 153-97-179-127.vm.c.fraunhofer.de (HELO smtp.exch.fraunhofer.de) ([153.97.179.127]) by mail-mtaDD25.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:43:07 +0200 Received: from XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) by XCH-HYBRID-03.ads.fraunhofer.de (10.225.9.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.27; Wed, 25 Oct 2023 11:43:07 +0200 Received: from DEU01-BE0-obe.outbound.protection.outlook.com (104.47.7.168) by XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.27 via Frontend Transport; Wed, 25 Oct 2023 11:43:07 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ckPCgIhynrw4ahf7Fgk+mzT9cbA4C/zoX3Bh62y7GMBrdugDnTM3tzRFa+cmp2cHHyVIEAU8ib5IJynpL7fWjx/NWFmYJ5TNiaCTGGADe5zxLPrhlf31yeHeO+4YRLf3nWdq/a9MhWVbyfUcyPNQFYhAN5aK0iGaJWaHbJ78Z4IKdQ3ls9YH7uiKNqz6XcR0ECNqrj9Cym000DDcxPXqdyhSPSSann/smRHEzTuqGCkMqkmTtTFtpbbb297iYDtOrPhM9HagEo0QwIk68j+Uo9L4A9y6hel0Aiv3gqUbN1/IccHJIfKq2NKuXGpsIx6Fb2aLsQjnsTYqsAQjktHS0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+wYA09Ez/WIUe3DVS+b/j50bQggTuJu8rqzdBeEY/5g=; b=DAvYpHdt5DIx6i5WA0RWUEDAYGVkqvRuVSrQxl5jXFfZwiIGIDWi32cqIF8KB+ry/f/PDvxwxUA7ODwjnBl9m1gvoEL72soJM/IalH4UqXVaf6yrvsmiMTKJJExL1/+v9OZt6saKRo4JYyCZuy5Kn0dDaDQpgl8BUfTT+rNWNbkILK6WXP/MYUNi09TWFrEnLd/+NN48dJ9Ua9c5RQdCibq9740Hnwwif0IZycmLqi22/qhusSWop5D1POrzKGqOTvKV0N7xqC0LLRyvMYZYNaTdRVvSsmWfUiP0pNYQ0TYdB81Io5KkbY2MZvAbpN1cfRBFWbiRMsDhYXNOO1B49A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aisec.fraunhofer.de; dmarc=pass action=none header.from=aisec.fraunhofer.de; dkim=pass header.d=aisec.fraunhofer.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fraunhofer.onmicrosoft.com; s=selector2-fraunhofer-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+wYA09Ez/WIUe3DVS+b/j50bQggTuJu8rqzdBeEY/5g=; b=Yp8EZet+KjJpjldfNw16aRd4PlG4htFWdl2yoibzW6CfreKERkfwFSbeSObCUqhQnn/NwIn6HHzogEK1nCxk4VelBBEkKPvClB94IXQvZMJpCrLfz0l75oZmR9pqHMAlDCSSkcw0vgU0R6qcpJM26Z51PeOB9vInE4y5SDqB+7A= Received: from BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:50::14) by BE0P281MB0116.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Wed, 25 Oct 2023 09:43:02 +0000 Received: from BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM ([fe80::7330:78f8:1bf2:2f4d]) by BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM ([fe80::7330:78f8:1bf2:2f4d%5]) with mapi id 15.20.6933.019; Wed, 25 Oct 2023 09:43:02 +0000 From: =?utf-8?q?Michael_Wei=C3=9F?= To: Alexander Mikhalitsyn , Christian Brauner , Alexei Starovoitov , Paul Moore CC: Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Quentin Monnet , Alexander Viro , Miklos Szeredi , Amir Goldstein , "Serge E. Hallyn" , , , , , =?utf-8?q?Michael_Wei=C3=9F?= Subject: [RESEND RFC PATCH v2 09/14] lsm: Add security_inode_mknod_nscap() hook Date: Wed, 25 Oct 2023 11:42:19 +0200 Message-Id: <20231025094224.72858-10-michael.weiss@aisec.fraunhofer.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231025094224.72858-1-michael.weiss@aisec.fraunhofer.de> References: <20231025094224.72858-1-michael.weiss@aisec.fraunhofer.de> X-ClientProxiedBy: FR4P281CA0420.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:d0::17) To BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:50::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BEZP281MB2791:EE_|BE0P281MB0116:EE_ X-MS-Office365-Filtering-Correlation-Id: fd20babc-28cd-4fe9-8807-08dbd53ec7a8 X-LD-Processed: f930300c-c97d-4019-be03-add650a171c4,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3L0OwalW8Pcf3pnS90WB3/jKX9qQRFLjrV/v9SDEX4QESAkYO2NdKHisbPB1T9PfSUUU1q3VmN3dm3QEYLHD+Sqnutycnn7jOuyryc0udT1+UhG0jYotDNZplfBkm0etv2X6Kolq7cOXJ86JgR6kPu/ZFxHVeNJcinYv7fRyi6P/WCVWamjYnblEqh4NxkB3QjW15cVbthlxXUc8gFq0KdwYxRyHuFlUhDB1jScwhjWiJQVvskgj4VJNHDghtdFAsIwj7bqsUjy3Pj/fOFcbYtDwGe2MN3TEXXN3tAlky9ohV1/GuOyGiKSDHEanfLBQkKrKTZX+GzXROJdsX+7jHAn5bK2dcmA4CpWd6tTueoIoBORMKPE/IBFMELSO8KvsI7DS/PrGSlrhdyg6azuRb2SLdwnySqTUmZ232ukRx4ecffWyW3MMjIzg2TeHlxfAe9icS/0OB+f9kkyjb8wHS5R73V4LRCRyQElJGugWz5ldalHdhvas1KHw/SIpHpUEWsyJmddny3Um/aH/cly6YwQIwT0hxOm2OZo6OCznMvN1kUk+NbGnuHHA+88rmgtQ3XBTY4ha3u8Fi3LC4CoKnEiegUEUNL55Jtpi+fo5FLE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(366004)(346002)(136003)(396003)(376002)(39860400002)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(66946007)(83380400001)(316002)(38100700002)(6486002)(478600001)(6666004)(54906003)(110136005)(66556008)(66476007)(1076003)(107886003)(52116002)(6506007)(2616005)(6512007)(15650500001)(7416002)(2906002)(86362001)(4326008)(8936002)(82960400001)(8676002)(41300700001)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?GuuTZbf4ZHRjNV3c2L/tLdsGCi5u?= =?utf-8?q?LSby7YyDvh682GOu3ed/AcR6xltutP7OaU9rvNK2WwitcEA97G+uKujCh3/P4ufwY?= =?utf-8?q?NXzcE4noQsCvk14d+TA2h6lQ5imPFh4JdrmuL9lOHddzK/4HHkTG5YQxt8s2dR0h9?= =?utf-8?q?NXRAT0nPczCeMH+WHwCucKwKHWhWn7K1TNejhlwEw52XjrjybF7woXmdXU6gN9865?= =?utf-8?q?VLmQTf0O461o3MfJwxPjUdVq88cxipYjRyrHjlvfz53tySFgZ0XmKkMrvD3ip0Wz4?= =?utf-8?q?//t8Xg1OM82rxlTeKhLIvajDvXLrXZUpJcE74HfI/tF+l8o4rp0yan6gUUoWwRO6A?= =?utf-8?q?IKpUCIvAKMJk5zykoNxq7rQWXo4exoeNDql0wJvTIrlGsBEc5CcpHb/EAKhWP7ItJ?= =?utf-8?q?XyenyxuYuV0odQGfX9VnOUoIfVxQtZEjOIfoPvzzHmdzI3f3Sct12tPp2BWRqCbj4?= =?utf-8?q?jojmw8PFFg1U4UTfe562ABg9IeLdxY196fLGU5IQTi9mXoYF8rgn0OAUw/l1Ex16M?= =?utf-8?q?k2/i+bmJAju/uh5FwRshPeigfTAqEfWAtTAKm3c2DTf5I9pzg44LT5EPvhz6q7D8p?= =?utf-8?q?obbMAWvX9cMoeMLq0KaoQ6AKcfO0P+Mw7uTX2yIundf3HFTjP43gwzW7+J0k7f4ES?= =?utf-8?q?ixSkUq/AlvqULhGl2eKVFWXLyqKvumJR+fPi3U4ru9iqoYWZcK/YXhT7siua+0B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?3vKfF9Tg61yXUcVBKl6QPIWrX+Q2m5BXtBGt00CNHFfqEKAf7UzxhE=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: fd20babc-28cd-4fe9-8807-08dbd53ec7a8 X-MS-Exchange-CrossTenant-AuthSource: BEZP281MB2791.DEUP281.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 09:43:01.9232 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f930300c-c97d-4019-be03-add650a171c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: i17tVnSt+K4uX1eDD0MLlzzeLFTb3HVld8pidfmBqZ3Zv8IBBg7K/qOE/+PGE44wqbS8uBu74a0sSfiCFRjlXwy5O+TeZZOIRxP5HA29c+TK5MFchOdoPqFk/inlWUO9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BE0P281MB0116 X-OriginatorOrg: aisec.fraunhofer.de X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:45:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780720272037218609 X-GMAIL-MSGID: 1780720272037218609 Provide a new lsm hook which may be used to allow mknod in non-initial userns. If access to the device is guarded by this hook, access to mknod may be granted by checking cap mknod for unprivileged user namespaces. By default this will return -EPERM if no lsm implements the hook. A first lsm to use this will be the lately converted cgroup_device module. Signed-off-by: Michael Weiß --- include/linux/lsm_hook_defs.h | 2 ++ include/linux/security.h | 8 ++++++++ security/security.c | 31 +++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/include/linux/lsm_hook_defs.h b/include/linux/lsm_hook_defs.h index a868982725a9..f4fa01182910 100644 --- a/include/linux/lsm_hook_defs.h +++ b/include/linux/lsm_hook_defs.h @@ -276,6 +276,8 @@ LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen) LSM_HOOK(int, 0, inode_getsecctx, struct inode *inode, void **ctx, u32 *ctxlen) LSM_HOOK(int, 0, dev_permission, umode_t mode, dev_t dev, int mask) +LSM_HOOK(int, -EPERM, inode_mknod_nscap, struct inode *dir, struct dentry *dentry, + umode_t mode, dev_t dev) #if defined(CONFIG_SECURITY) && defined(CONFIG_WATCH_QUEUE) LSM_HOOK(int, 0, post_notification, const struct cred *w_cred, diff --git a/include/linux/security.h b/include/linux/security.h index 8bc6ac8816c6..bad6992877f4 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -485,6 +485,8 @@ int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen); int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen); int security_locked_down(enum lockdown_reason what); int security_dev_permission(umode_t mode, dev_t dev, int mask); +int security_inode_mknod_nscap(struct inode *dir, struct dentry *dentry, + umode_t mode, dev_t dev); #else /* CONFIG_SECURITY */ static inline int call_blocking_lsm_notifier(enum lsm_event event, void *data) @@ -1400,6 +1402,12 @@ static inline int security_dev_permission(umode_t mode, dev_t dev, int mask) { return 0; } +static inline int security_inode_mknod_nscap(struct inode *dir, + struct dentry *dentry, + umode_t mode, dev_t dev); +{ + return -EPERM; +} #endif /* CONFIG_SECURITY */ #if defined(CONFIG_SECURITY) && defined(CONFIG_WATCH_QUEUE) diff --git a/security/security.c b/security/security.c index 40f6787df3b1..7708374b6d7e 100644 --- a/security/security.c +++ b/security/security.c @@ -4034,6 +4034,37 @@ int security_dev_permission(umode_t mode, dev_t dev, int mask) } EXPORT_SYMBOL(security_dev_permission); +/** + * security_inode_mknod_nscap() - Check if device is guarded + * @dir: parent directory + * @dentry: new file + * @mode: new file mode + * @dev: device number + * + * If access to the device is guarded by this hook, access to mknod may be granted by + * checking cap mknod for unprivileged user namespaces. + * + * Return: Returns 0 on success, error on failure. + */ +int security_inode_mknod_nscap(struct inode *dir, struct dentry *dentry, + umode_t mode, dev_t dev) +{ + int thisrc; + int rc = LSM_RET_DEFAULT(inode_mknod_nscap); + struct security_hook_list *hp; + + hlist_for_each_entry(hp, &security_hook_heads.inode_mknod_nscap, list) { + thisrc = hp->hook.inode_mknod_nscap(dir, dentry, mode, dev); + if (thisrc != LSM_RET_DEFAULT(inode_mknod_nscap)) { + rc = thisrc; + if (thisrc != 0) + break; + } + } + return rc; +} +EXPORT_SYMBOL(security_inode_mknod_nscap); + #ifdef CONFIG_WATCH_QUEUE /** * security_post_notification() - Check if a watch notification can be posted