From patchwork Wed Oct 25 09:42:15 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: 157971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2479236vqx; Wed, 25 Oct 2023 02:44:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFK5CfkEAHd0OM0pcU+txbt27G8/3TGYgha34VySVqeFsRfumynWBpqP4uZla7+1gb5O0Mi X-Received: by 2002:a05:6808:61a:b0:3af:658f:14f9 with SMTP id y26-20020a056808061a00b003af658f14f9mr14606510oih.41.1698227084940; Wed, 25 Oct 2023 02:44:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698227084; cv=pass; d=google.com; s=arc-20160816; b=OZKMXCApz2/hTZWd4zFagesUZgUpJlrfWZkbsA+ycomJjsr4HakqHgmuhSPiuG6MdZ GWpqdfaMeA2PG1Qt6+zAYiVFIAOn8CW+faRfD9SZjpNKV9T/2yYl4mnTyoGbGCr1NUOg BB0amDUUny8a0TwN2TmRe3GUNrIrcNE0WFgT/LLhkysIzgb5q0j2ePcZjBBsQNfBBPjn HngxA9fLPTYVCCc0esvUjSZGkQwobKplqCz/sbxY4gxNPUiuf4swBglQw/7bmLD/blGL FYD3tKZ8tb8u1jHM9jzvnQ4W4QbyyDIlrByl+/FnT2ZY8TPIylxyErLQUX3cOjqIP4V7 oZEA== 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=9B3vG4AqSkyndYqXFCb2qiY7Gja6nxIbjcaEafCQSuo=; fh=U9u/esc0XBb8N/pVu7kudxJPwEQ0AyrThcmR2LpYyxQ=; b=N10dbgdGnk7UMZ7VahOBxWOZXTVYkmq/KS2lA7mJaxTwxDqcBuVbYKTtA3EhkMhWhn UC0yznGEFLwq5KDn6RecpuFhJajjMv1X6hl2+b/cjHToegdrjTxCPMfr593dVzB6oeAc 3xiHXbMyLtz/c7PjiV5LYvoAtK6WcrBAHC7hsnYojAigV2d9yfi+CuewRuYbIHlaf8n5 RhhO5AvFUKMrb6wFGMgeN3FqsQZE6qcp33XhnyfiFnXPdKT/x64/f78VlQZaxDu6+6E/ KKxSeZbfiFPArsTpIsLa9eMfFUR48vZSYqJZ0VDGTDrbUR+wsDyvOdExNmgc+yFHQRan CsKQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@aisec.fraunhofer.de header.s=emailbd1 header.b=xS+RGo9s; dkim=pass header.i=@fraunhofer.onmicrosoft.com header.s=selector2-fraunhofer-onmicrosoft-com header.b=HVNRq5uD; 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 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y123-20020a25dc81000000b00d9cb5b26d71si9686237ybe.634.2023.10.25.02.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=fail header.i=@aisec.fraunhofer.de header.s=emailbd1 header.b=xS+RGo9s; dkim=pass header.i=@fraunhofer.onmicrosoft.com header.s=selector2-fraunhofer-onmicrosoft-com header.b=HVNRq5uD; 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 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 93BBB802F234; Wed, 25 Oct 2023 02:44:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234695AbjJYJoW (ORCPT + 26 others); Wed, 25 Oct 2023 05:44:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234519AbjJYJoJ (ORCPT ); Wed, 25 Oct 2023 05:44:09 -0400 Received: from mail-edgeka27.fraunhofer.de (mail-edgeka27.fraunhofer.de [IPv6:2a03:db80:4420:b000::25:27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EB9DD; Wed, 25 Oct 2023 02:44:05 -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=1698227046; x=1729763046; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=gv9yrbDlT55tNu9gSi5nUtsqTT5sNurOJOivF+/yNDw=; b=xS+RGo9shBJCSWeJtZT/8ZKPAamFLIPU1UYDbQKuPFE6n1/DCdWpwqgL ZqaHdMTvyV6ZEnK2dnB+UTwVrwAtChriUstUfd4FWZvlH5MS1gRakWYwi 0PNDSYSh0kixV+wrNgdyj3wuE6j5UGzPmSAK/n6DsQGk7+9vr0dFN9PXU GCf/a+Rs60a/JCLgEcvZntdRF+ubSemE4QnklFDm5YE5nWDyypUGLMvXi zriSjHAqHqyMWwUmiT7/miHx8nTW7QKgTGnIzDAAKiIK9iTd6/0ZPI15M afGA/L1SxFk9L6tKknnFhxNICms7aYdJeLNXjc8XvBUxG6tr3TM9+Kuql w==; X-CSE-ConnectionGUID: i+AxNexJRu+qNaabQM866A== X-CSE-MsgGUID: X8UfNcKgSD2EPuLqF5Ciyw== Authentication-Results: mail-edgeka27.fraunhofer.de; dkim=pass (signature verified) header.i=@fraunhofer.onmicrosoft.com X-IPAS-Result: A2E2AABB4jhl/x0BYJlaHQEBAQEJARIBBQUBQIE7CAELAYI4gleEU4gdpWsqgSyBJQNWDwEBAQEBAQEBAQcBAUQEAQEDBIR/AocaJzQJDgECAQMBAQEBAwIDAQEBAQEBAQIBAQYBAQEBAQEGBgKBGYUvOQ2EAIEeAQEBAQEBAQEBAQEBHQI1VAIBAyMECwENAQE3AQ8lAiYCAjIlBgENBYJ+gisDMbIYfzOBAYIJAQEGsB8YgSCBHgkJAYEQLgGDW4QuAYQ0gR2ENYJPgUqBBoIthFiDRoJog3WFPAcygiKDLymLfoEBR1oWGwMHA1kqECsHBC0iBgkWLSUGUQQXFiQJExI+BIFngVEKgQM/Dw4RgkIiAgc2NhlLglsJFQw1BEl2ECoEFBeBEW4FGhUeNxESFw0DCHYdAhEjPAMFAwQ0ChUNCyEFVwNEBkoLAwIaBQMDBIE2BQ0eAhAtJwMDGU0CEBQDOwMDBgMLMQMwV0cMWQNsHxocCTwPDB8CGx4NMgMJAwcFLB1AAwsYDUgRLDUGDhtEAXMHnU2CbYEOgliWLgGueQeCMYFeoQkaM5crkk8umA4goj6FSgIEAgQFAg4IgWOCFjM+gzZSGQ+OIAwWg1aPe3QCOQIHAQoBAQMJgjmJEgEB IronPort-PHdr: A9a23:sVzF9RBsaOfoHmq1OLKhUyQUPkIY04WdBeZowoRy0uEGe/G55J2nJ 0zWv6gz3xfCCJ/W7/tUhuaRqa3kUHwN7cXk0jgOJZJWXgIDicIYkhZmB8iACEbhK+XtYTB8F 8NHBxd+qmq2NUVeBMHkPRjcuHSv6z4VFBjlcA1zI+X+AInJiMqrkuu1/s62AU1I0RSnZrYgA ByqoFfqq8MUjIB+eIM80QDArXYNWsgE7mRuOV+Vg1PA99+9rrtC1gkVhf877M9HV/fKOoEDC JFIBzQvNW84ofbmsxXOVyKjzXsRWWZF93gACQiQvTuhQLitmzLBtft71BiDDePdR+otWAX9w KViFhn4qS0FPDcU+W/8s/dti/cIxXDprUlf/ajuedyIGOJRRJv6UPVDGWBefe9eCnBqUqmcd 7IdP7paE75+n5PToHocqB6gL1a0KOj+zR9Y22PX/IMz7M45Plzi4z18HehRlTfkt8/fNoUtf +Ll57f44xj+ZbQL5mfetoXTVjELnq3UXIkpS5uS02YNGQ7U0UmBitH+Dm2KiPownHWZydA5C N2zjF47igJypwSw7eMMjZPv17Mc81vfqABa3K8TJ+SoUBIuMpa0VZpKsCeCMJFqB9kvWHxsp HMiw6Yd6vZTHQAPwZUjghPTZPGEetLXpBz5XfuXITB2iWgjdL/szxqx8E310uTnTYH0y1dFq CNZj8PB/m4AzR3d68WLC7N9806t1CzJ1lX75PtNPEY0kqTWMdgmxLsxnYAUqkPNAmn9n0Ces Q== X-Talos-CUID: 9a23:ZQbSXGDurzwbMMb6Eygk3V4yF9AHSGCe1VHZKkWBLDY3FpTAHA== X-Talos-MUID: 9a23:C7P2AwSi9cAikfNCRXTc1AxsEsxL7J+CUm01jLEflZSvND1vbmI= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.03,250,1694728800"; d="scan'208";a="1597260" Received: from mail-mtaka29.fraunhofer.de ([153.96.1.29]) by mail-edgeka27.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:43:01 +0200 IronPort-SDR: 6538e323_4JQlWwXat3Mn6HlFJZA6SkSVpu8cvP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A09TyX4ra CTdJZy73XJYVMqNU3I9urwXJVoLUmxyXcW2+cs1N6ZNWGMhILCFuBfBOXZrAHIKmnX7e5X3e NMb7N3A9j9IVxzjcO/3RKxGdQt2/mLmZrY4Nv2/jNEVgFgY+VH9Ad2CgGSD01wSk1vHIM9FJ CV+8pAoFObCBYqR/X+LmIEVOCGgcbKmpLgaQMHABBi0wWHiDfA0s+YLySl X-Talos-CUID: 9a23:Xx0RpG9ojZRbiLQNMeiVv2w6P+k6X0fs9nKKMheqLEVRUoWOSHbFrQ== X-Talos-MUID: 9a23:8Vy02QTm2u3QgnheRXTuhQ9oap5j5Z6RN0U0lY5bnsaGNipZbmI= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.03,250,1694728800"; d="scan'208";a="64504541" Received: from 153-97-179-127.vm.c.fraunhofer.de (HELO smtp.exch.fraunhofer.de) ([153.97.179.127]) by mail-mtaKA29.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:42:58 +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:42:58 +0200 Received: from DEU01-FR2-obe.outbound.protection.outlook.com (104.47.11.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:42:58 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L/HEfxQoU3o4NJzhOW2WBmpBBW8gJgF470SySJWi0rcRwSDQQO0BXX8RjvSfrl5z2irIjkTdlTdqLqfOHdgHlmXz//wYW8n0fG5dyX7O11wQSeDcOHGfYkIsd8t95rCEC6p/iGjm5HBLrKBjHaxhM3s7Wme6eZUiX+//jaFhDSQoDdG9O6trFatXYSwQKoVtBKIcTetsaIC7ZiWqNQQRfQIRSmTmL4gzfjWcKHkdJo6WdAPgzwenatpRE4HibJoYgeocC9vmW8LFR18OpwjrV3OCDcKF5PPrvHpbu7+ihuVMHUepu0Iq8QzzIcs4Oi70LM2Yh8TVyue+qpqerlRhWg== 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=9B3vG4AqSkyndYqXFCb2qiY7Gja6nxIbjcaEafCQSuo=; b=Piqo+u6AdWzZi8dseXJBAGBhY239UElLIZ8Ek306XUeL09RvHmHmCDHGKWUKWWdJibadROmH6lLoq/5gz+cDk7gYyoh0j8WRdVCK6uObe/4uJ5Fa8JyEUY+YnKbW+15nF9J+9RQgfmtx3vuAm8ZxHLmU9PFqynKB8ogDL5YhLstGT4D38vOGcG+Iq6K7a+XjqNIviwD0s4FpT4hi8clK4Z22OYlXAMy1hN5XngkwVf8tGCN7L6JH1BYZpl/w+kN2DyaaprPXaFszyXdn2eSV6M3RspdvvFpbk50jOnm8RavQsd+mHhds5ixcWtVkW+81fnX72hcJPy9r/9QLmsuGFQ== 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=9B3vG4AqSkyndYqXFCb2qiY7Gja6nxIbjcaEafCQSuo=; b=HVNRq5uDpGRPOEN14bwKAg54C8BHpQzX83F0NXrFoIzmmvB7pDcyoHx5tIIFaWBpG5LWY4jR7M+XsrBjJWFj8CvXFEUb/5W8K6esLIBW40iS1R9+rGJfey7tyK5sY6w6vUGujNR15WtoXtIkkmTwCLHorN9YaQcs5MKtANjQxp4= 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:42:57 +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:42:57 +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 05/14] device_cgroup: Implement dev_permission() hook Date: Wed, 25 Oct 2023 11:42:15 +0200 Message-Id: <20231025094224.72858-6-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: 2a0e69d7-6565-44a9-6605-08dbd53ec503 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: iRFrLvHz+bi/+pCJOT/RCSM4JL5AdLfabO1RJNi/Y51PNRTbEReB0BU3dSuEFYo0eQ4bZQJKC8XXBuGxeWnzjJz3zqHGLFI+dcELerXBRYPvna48q0XyR/olnZ0OCfOQ/35X9lZns+CX7QgMF/gjwlb8q24T3wQbDk41VwjWnuTr9XLIDI3XES4xsLPM/QcOvgQi7Nxnwf4Z+OTsStR0TWdLvhhCSmlzFduzIWiwDDrCDwbbxSw1YcQ7PUb8BzPJ1HO3S/i8vv3EqgQPUY8RAe5I2pCYVAGpAhfKLJqepbIx8pc9DudZ/TWyitjtdN6EbFOUoOMqi20Pmge7pkVpQexd4DT5ZLCCK/ATDQHWuU7MJJR+w3Wz03NyIszXfZo1w+f3AMZQmo6CvKX/NqM8gGwYxtk0cDE9PaLWNgPt5WEIE2QIajmkV2vxpHYIJCsq16BpuwD7M2+RS1yZvDgKcHYELuvw3n8uTuG6+EjoWUWwXhaEd3G+7AQPwmpQjmdvLpja8mWsPnp4BqXIvh0CKAB+K0A3zynt0DP1uR25UfuTSIP7mHLIkgwP1BmaL2DHrRKqShAgRRdDZZy42KFbf5sFDisyYCwBQfFcm9Fh488= 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)(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?d3h2XSWAxBCJGe7ZVC6rwUYtn0Ey?= =?utf-8?q?2ysjKYaxpnFw6Fvwnt2f8IsNoof8/+LQvJdmNLVR0BHOQjpMDJaBIcErPkW+3MvAn?= =?utf-8?q?ve57aW6PZAXIDWGic0MAoDDyJFZEVWUK6ADZX4SXFkVulK8+v55qDjNUIfPuC9ETv?= =?utf-8?q?R4zRZKTx1Ix58yZk7S5ANJOSiMDWuiIyBXS7OyFJsAXhw/Bu8IXhSl8YJ54vGZaLx?= =?utf-8?q?kfGL760Dp8FcPmcYsEufRiBlRt1m8ozaGSAFpg+ttwF3J1r4DKzqUr9hRNEUR7A3K?= =?utf-8?q?JI4AV+A5Yq8TkBcB7/4fhXkrKQ58xtkh61x597i+it2Nu7oC2BYaLBbQIl4S/mJZu?= =?utf-8?q?XVvEww497a4K83TXocfkpREhnFQ9bWWGRk1jQXzfQhLorpkom6v3C1A4GIRUFwUrl?= =?utf-8?q?TRUA0Qq6mQIR8Sbm2iunFSh5u/WrdcuESiiZk9XBw1cP0rQ5oCkcWnsBaSdg0nkZB?= =?utf-8?q?LB2NdRi62gMw/W/MLAgc/HYKYzhszT+Rgk4jdXxUQ3F9+66538pckwkLydw2yN8Z1?= =?utf-8?q?RJlobBtOMc9cFvOUSV4IsKsuplzeG92efXgnkWwSE4nRxUv63z2KMYm19dj63IV2h?= =?utf-8?q?4UQQBRDL8lTYpyXpI0Wf5RgZ0YEpFugbvHxp/q9KP77ZgeSCgSOFnvCFBrHDCiRTi?= =?utf-8?q?4RWwY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XnoCQcB3qH91OeP+HqZeQiRejUjx4KVcYdUU48Zmvguuy7nzBe?= =?utf-8?q?SKJkrGvEngBUdhliJDhWuWCKR+xaSUT9GobkcTkk/cKYBYfPiC0ho4=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2a0e69d7-6565-44a9-6605-08dbd53ec503 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:42:57.4355 (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: nJFKSi7qN4GDjSpm4p59ogIROeXx/9+GGfkvzU/cJ6Wcym482w5KH/Ssuaab3wmEkqPw9/P+rgireMePHwE7E6WDV3bkcETBk+XJMisBM6D2Ix8LTPiz3wTi+88RYQww 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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:44:41 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780720164055977258 X-GMAIL-MSGID: 1780720164055977258 Wrap devcgroup_check_permission() by implementing the new security hook dev_permission(). Signed-off-by: Michael Weiß --- security/device_cgroup/lsm.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/security/device_cgroup/lsm.c b/security/device_cgroup/lsm.c index ef30cff1f610..987d2c20a577 100644 --- a/security/device_cgroup/lsm.c +++ b/security/device_cgroup/lsm.c @@ -14,29 +14,32 @@ #include #include -static int devcg_inode_permission(struct inode *inode, int mask) +static int devcg_dev_permission(umode_t mode, dev_t dev, int mask) { short type, access = 0; - if (likely(!inode->i_rdev)) - return 0; - - if (S_ISBLK(inode->i_mode)) + if (S_ISBLK(mode)) type = DEVCG_DEV_BLOCK; - else if (S_ISCHR(inode->i_mode)) - type = DEVCG_DEV_CHAR; else - return 0; + type = DEVCG_DEV_CHAR; if (mask & MAY_WRITE) access |= DEVCG_ACC_WRITE; if (mask & MAY_READ) access |= DEVCG_ACC_READ; - return devcgroup_check_permission(type, imajor(inode), iminor(inode), + return devcgroup_check_permission(type, MAJOR(dev), MINOR(dev), access); } +static int devcg_inode_permission(struct inode *inode, int mask) +{ + if (likely(!inode->i_rdev)) + return 0; + + return devcg_dev_permission(inode->i_mode, inode->i_rdev, mask); +} + static int __devcg_inode_mknod(int mode, dev_t dev, short access) { short type; @@ -65,6 +68,7 @@ static int devcg_inode_mknod(struct inode *dir, struct dentry *dentry, static struct security_hook_list devcg_hooks[] __ro_after_init = { LSM_HOOK_INIT(inode_permission, devcg_inode_permission), LSM_HOOK_INIT(inode_mknod, devcg_inode_mknod), + LSM_HOOK_INIT(dev_permission, devcg_dev_permission), }; static int __init devcgroup_init(void)