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 X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBF99C433E0 for ; Tue, 22 Dec 2020 02:06:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA24522AB9 for ; Tue, 22 Dec 2020 02:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725961AbgLVCFp (ORCPT ); Mon, 21 Dec 2020 21:05:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgLVCFo (ORCPT ); Mon, 21 Dec 2020 21:05:44 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7897C0613D3 for ; Mon, 21 Dec 2020 18:05:04 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id b5so497585pjk.2 for ; Mon, 21 Dec 2020 18:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BjqP2DWMzUgVSuoBJUlFTOQoE6yKTPo48L3QchtjvGY=; b=FllSVdllnmuF7BkcPxpDztCU09IJNw8v0WbJN7gP+0L46GkBR9DmWxvyrQE+eQyhHN qRAHjdRdaT1+IVfB8wmlA/4BZ1unmNARTAL18i8EdbzhDZ9CvKEWqBXVNa5bh4cECpP5 PvHvFIg1GMtq4jPrKbpbKe4Fdkm7l97U6r6O+24xy+jN/wE1hjW6i5E8oDQShBRsUqXg 64PYpAfK9877iLBrCHJgvQXwI9i99rC+9fq1oi881dXDCqKc/hhV1tGjh0dmM7XyN58f siC4T8KqswTOS7yDSPG5npWMbyp9SOT6l8jfyLBOybvWkd6KEXdlyADxEXBdWq/Yttnk GcrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BjqP2DWMzUgVSuoBJUlFTOQoE6yKTPo48L3QchtjvGY=; b=AA0b1f9ApWhD40owLYC7qarIDXPWifYK6fLCRkCFxPh8CSipBGIUpV055XT2JDqAb1 apW6lkEBO5VkfX6mCkUvnxxYS0nO81qPk/qA/pAQPFuOROh/GTKrh9DRo8Qu3syVbycH zxuoD7K9mVeHA6jBdyTOZV33jL5vrAv+bF9oM3DNRmNgi/GaM/NDIPhSwg7Z0YpKlTxy mm/WuifXhewo1qRc/ms21cMjhvHnc+oRbcvze2XkOS0qsL0QT/4LSVuHt8HLzULc+iAb MD6xjMgoEj+zvlujqs3vtVMjVtXfYj9yLISbwp/qfresObH2SSaNgSWj8Br1bYrrE5kL 554Q== X-Gm-Message-State: AOAM533Co3Xwa2eOCftCgb/sN7dlXaqK3AQ6peTVXC/ekYIm0ULowDx0 LzDpe/qpSTILn882Z6FXfMkW6g== X-Google-Smtp-Source: ABdhPJznY1ha1OFR7/m/5ybjAlNrIP/LyKhWd6iBeuUozlVL7tx1JQmei4BDY/Z7S9gJ0ryzVmTaJQ== X-Received: by 2002:a17:90a:1782:: with SMTP id q2mr19688250pja.189.1608602704017; Mon, 21 Dec 2020 18:05:04 -0800 (PST) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id k125sm14833904pga.57.2020.12.21.18.05.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Dec 2020 18:05:03 -0800 (PST) Subject: Re: [PATCH] Smack: Handle io_uring kernel thread privileges. To: Casey Schaufler , "SMACK-discuss@lists.01.org" , Linux Security Module list Cc: "Eric W. Biederman" , LKML References: From: Jens Axboe Message-ID: Date: Mon, 21 Dec 2020 19:05:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: On 12/17/20 6:12 PM, Casey Schaufler wrote: > Smack assumes that kernel threads are privileged for smackfs > operations. This was necessary because the credential of the > kernel thread was not related to a user operation. With io_uring > the credential does reflect a user's rights and can be used. Acked-by: Jens Axboe -- Jens Axboe