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 4D8A3C38A2D for ; Tue, 25 Oct 2022 14:12:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232449AbiJYOM6 (ORCPT ); Tue, 25 Oct 2022 10:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232294AbiJYOM4 (ORCPT ); Tue, 25 Oct 2022 10:12:56 -0400 Received: from sonic301-37.consmr.mail.ne1.yahoo.com (sonic301-37.consmr.mail.ne1.yahoo.com [66.163.184.206]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C67C9B868 for ; Tue, 25 Oct 2022 07:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666707174; bh=2dZ/1rxUrkU/jW1nMSr++n/wr/TZUs+jHT4qeDrH3Lk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=gBzlpZNTMu7WXw2v7+5BW/nLnQ0QFw1UEE0EEsVEbYEAjjx2oy1+xOs9E2jyXJ4eOe+HADCtAYIc3krSD5LmRUmKlkW9TSyiPzywzp5aptGGb481eoO0ZU7VYMtCRg606slvqGGE/yZ563yF66ZYA73NFJZPyitCu3D80KTWJUi/15eJGIoMer63iA6qa56tkJxwA56zniuwqyVvnsqdejZHPOVE5qyKcHZJ+R5HcoVjc/tj1JjRx5XNpZsarIgFt2F6ra7j3H2sXr33fuPQmJ/11436CTc1d0qJuhSqjq48oW+e23HxO/wcWfpy6GomVdZ8lkGkoPOSu3xsVHPptw== X-SONIC-DKIM-SIGN: v=1;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CFERV4OkoDfED Sw6cVXxQDHdg5DD.VxkOA_bNiswWWyB4uneApJuagj3mZy83ORpNkCH3BHMH6MQJngoEuEbGfQhs ovTq.HiEA8Pp2b0vRV_zCbjANi728Yb2pyO04Xehm3RHi9Q1hAwXD0Kq8wRraUdXHah8.YkGaOmK TVpYkLqvU_fUJ3_RbNijAd6s0oUFJNJfXzU8_NkBSNCgugIAw7KEovjGi8Y1QdARn53iZ9ZAD3jg WRAg5W834ZPHLbg7Ie55tRVeF6f9dF6Y6oqb8hL8.vV2ty4uhPhY1wUVPSfycY7RuIS18UrkPSss i4rhRQDUeohl3QOmGKGszszSaMFlZCcg.1uh25JTAWf3dCrnvv.GdWpMrN8k9ieKvoi1oYi5Vx2Z y6bqQK0tw80wWylHfHSoOnXcxSoe3v2MuGWdq3g63rqLzww.mJOvkmqwUnkOSply8q_rWjSBqUtX _BWQc7rDXfjGpokCCYAHvEYFdKbjOPpT4ZFPcnuQXPSNqTty.1SW3oly8FIOUYwby3xkFu8kvBTB QN63mSVyWjtEZhD_fvhZueXgympb9ox0BjLb2Y5FqbglfugHVCuVN8nPSc4GYE5cOTuTciXWdSUI xOGCIH1ExpBj0LyML_Es1FfGnE5StRJ4qDBtnfTY- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Tue, 25 Oct 2022 14:12:54 +0000 Received: by hermes--production-gq1-754cb59848-dxw7w (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7385069bd8f4d56b8886cf3153f058bb; Tue, 25 Oct 2022 14:12:50 +0000 (UTC) Message-ID: <11564f69-3bba-abf7-eb46-06813ff4a404@schaufler-ca.com> Date: Tue, 25 Oct 2022 07:12:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: LSM stacking in next for 6.1? Content-Language: en-US To: Tetsuo Handa , John Johansen , Paul Moore Cc: LSM List , James Morris , linux-audit@redhat.com, Mimi Zohar , keescook@chromium.org, SElinux list , casey@schaufler-ca.com References: <791e13b5-bebd-12fc-53de-e9a86df23836.ref@schaufler-ca.com> <1958a0d3-c4fb-0661-b516-93f8955cdb95@schaufler-ca.com> <6552af17-e511-a7d8-f462-cafcf41a33bb@schaufler-ca.com> <5ef4a1ae-e92c-ca77-7089-2efe1d4c4e6d@schaufler-ca.com> <1a9f9182-9188-2f64-4a17-ead2fed70348@schaufler-ca.com> <2225aec6-f0f3-d38e-ee3c-6139a7c25a37@I-love.SAKURA.ne.jp> <5995f18c-5623-9d97-0aa6-5f13a2a8e895@I-love.SAKURA.ne.jp> <77ec837a-ff64-e6f0-fe14-a54c1646ea0b@canonical.com> <0fcc5444-a957-f107-25a1-3540588eab5a@I-love.SAKURA.ne.jp> From: Casey Schaufler In-Reply-To: <0fcc5444-a957-f107-25a1-3540588eab5a@I-love.SAKURA.ne.jp> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.20754 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org On 10/25/2022 4:20 AM, Tetsuo Handa wrote: > On 2022/10/25 19:26, John Johansen wrote: >> no, Casey is not. He is trying to find a path forward to get LSM >> stacking upstream sooner than later. He has made proposals that >> admittedly you have not liked, but he has at least tried to propose >> ideas that could work within the insane set of constraints. > I'm OK with getting LSM stacking upstream. But changes made based on > only built-in modules are bad. If LSM id cannot be assigned to loadable > LSM modules at runtime because not all loadable LSM modules will be > in-tree in order to get an LSM id assigned, loadable LSM modules won't > be able to utilize e.g. lsm_module_list system call (or whatever > changes made while trying to unshare resources/interfaces currently > shared among SELinux/Smack/AppArmor). > > It will be a complete reinvention of Linux security framework which is > merely borrowing hooks provided by LSM. That is no different from > duplicating existing LSM hooks and managing via completely different > set of interfaces (e.g. /proc/$pid/attr2/$lsmname/$filename , > /sys/kernel/security2/$lsmname/$filename ). Such implementation is > no longer loadable LSM. It is LSM version 2. And I don't think that > such implementation will be accepted unless you agree to kill current > LSM (say, LSM version 1). The counter argument to this statement is that BPF has been accepted upstream. eBPF programs are different from built-in security modules. There is no reason that a well implemented LSM that accepts loadable modules *that are different* from built-in modules couldn't be created. I seriously doubt that it would get upstream for all the reasons usually cited. But there is nothing about the implementation I've proposed that would prevent it. 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 us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5821CECDFA1 for ; Tue, 25 Oct 2022 14:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666707188; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=iaRG1KoOnuO6VY8jB0LOdcFhQLx0ozCVEwmazEOZjZg=; b=bw95cS+jiN/tBsX1r+PuefrDGRv8Ha99B/0o3d4z8klKDcofQ0xkSEs8u/LuITWGfSIihG LB99OcSNz8ZTPhxtNRFEc207Bc/Hd3hr2JY0gZ4XJ2kAGkJkDuXL3Xz4jARDy/45JiYyRp EkI8gGIcUDoWkr1+SBKjFoiYuF7MzXA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-552-UM5vVQkJO_Cm-qH4Ob7hzA-1; Tue, 25 Oct 2022 10:13:02 -0400 X-MC-Unique: UM5vVQkJO_Cm-qH4Ob7hzA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 09F3780D08F; Tue, 25 Oct 2022 14:13:00 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id BF806111F3B6; Tue, 25 Oct 2022 14:12:58 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9FA7919465A4; Tue, 25 Oct 2022 14:12:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9108D1946597 for ; Tue, 25 Oct 2022 14:12:57 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 75E1A17584; Tue, 25 Oct 2022 14:12:57 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast09.extmail.prod.ext.rdu2.redhat.com [10.11.55.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6E00B10197 for ; Tue, 25 Oct 2022 14:12:57 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3B48F29ABA3E for ; Tue, 25 Oct 2022 14:12:57 +0000 (UTC) Received: from sonic301-37.consmr.mail.ne1.yahoo.com (sonic301-37.consmr.mail.ne1.yahoo.com [66.163.184.206]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-613-iykM7vf-Maag2qAxJ3gPsQ-1; Tue, 25 Oct 2022 10:12:55 -0400 X-MC-Unique: iykM7vf-Maag2qAxJ3gPsQ-1 X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666707174; bh=ZuLxdnI7dIHrDdaH+AF9R+GcZn7tyg56OTuIhhYIy50=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=Som/NBVr1SpvGOqwyweDJpVVi3KJ3TGtyetdkNnBYnmvglCcHRqWdk8hMlTx2FW4QhLV6wn4JQrpUCEtdgipb7vk6T8s4met1QP6jDrAKmVg+NIj1oJkZdjkhGJyPY/kPHv3TFvLuPPz4MQgzc5FxS+LTta/iATWrMQfSMIKo6/H0lKrSS0u2+ZuNNXPSqv4AB4qrwN4SgFipORwkKH/mhY4s7b78olxmkNOShmCkWGQwoP5imGpm+6MJkhNofoJzkpeLLQlqK9xciQSpQCvn/8k9CnROFOgMvpOEjxft94A/Vz4H8zZZEzpXqnpaiittnt1OfRmS6yDwqHnbeGJ/A== X-YMail-OSG: 1UGMiccVM1kqGFEohkhtbrsun8bJ5LaoK3jIZzLXyxGn.vUGBfdQZ3cp7lQXgTj kVfXB2PguvZkFI64xXG3zARWRLmTsYTq_d43kFauf6E6KPsLl0duUuApW3ZEx3Vmc7lIXKP6C4yW rnzru5XzaNqKbL45yG2HuDSgd6FcQSTGTDpBFq1ivxqYuMD6oCCJ.W.I5sG6I_si2_71g_e6GkFj 6nknGeuWaxq_O62BRMX_MhSRXHOVto.zu8DGmx_zM9AT9lM1fS4RfvUZmtxpBYDAH7vwwI9jATmf OEIsKNhWwzZkiDHVG97noJchLdQPJgYfPKqkccAnSZWROIbpfRPJ5vG8g1E5xpuW0D6k1g3aD6lv iOihczkhEYYPXj.HMT6PGwPYbb7W2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VsFMDihbTEtqLQzsVpoDrEQ6Wq5G94tDU1ojwV6ZnsSqktMq9nW3LDFFb ICFaiKJnUfapdkAFwUNlKYJGwLFRT2xyKpiiNILPXACmg7BBNB50FrIfEM3LfxD9qBtrtNPorIWY hcAicTaAVlLqtvQngLC8BSY6syC0VCKNHqrUYoXpgrNp1.K4yLso2BO3RJF7ZOSCFERV4OkoDfED Sw6cVXxQDHdg5DD.VxkOA_bNiswWWyB4uneApJuagj3mZy83ORpNkCH3BHMH6MQJngoEuEbGfQhs ovTq.HiEA8Pp2b0vRV_zCbjANi728Yb2pyO04Xehm3RHi9Q1hAwXD0Kq8wRraUdXHah8.YkGaOmK TVpYkLqvU_fUJ3_RbNijAd6s0oUFJNJfXzU8_NkBSNCgugIAw7KEovjGi8Y1QdARn53iZ9ZAD3jg WRAg5W834ZPHLbg7Ie55tRVeF6f9dF6Y6oqb8hL8.vV2ty4uhPhY1wUVPSfycY7RuIS18UrkPSss i4rhRQDUeohl3QOmGKGszszSaMFlZCcg.1uh25JTAWf3dCrnvv.GdWpMrN8k9ieKvoi1oYi5Vx2Z y6bqQK0tw80wWylHfHSoOnXcxSoe3v2MuGWdq3g63rqLzww.mJOvkmqwUnkOSply8q_rWjSBqUtX _BWQc7rDXfjGpokCCYAHvEYFdKbjOPpT4ZFPcnuQXPSNqTty.1SW3oly8FIOUYwby3xkFu8kvBTB QN63mSVyWjtEZhD_fvhZueXgympb9ox0BjLb2Y5FqbglfugHVCuVN8nPSc4GYE5cOTuTciXWdSUI xOGCIH1ExpBj0LyML_Es1FfGnE5StRJ4qDBtnfTY- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Tue, 25 Oct 2022 14:12:54 +0000 Received: by hermes--production-gq1-754cb59848-dxw7w (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7385069bd8f4d56b8886cf3153f058bb; Tue, 25 Oct 2022 14:12:50 +0000 (UTC) Message-ID: <11564f69-3bba-abf7-eb46-06813ff4a404@schaufler-ca.com> Date: Tue, 25 Oct 2022 07:12:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: LSM stacking in next for 6.1? To: Tetsuo Handa , John Johansen , Paul Moore References: <791e13b5-bebd-12fc-53de-e9a86df23836.ref@schaufler-ca.com> <1958a0d3-c4fb-0661-b516-93f8955cdb95@schaufler-ca.com> <6552af17-e511-a7d8-f462-cafcf41a33bb@schaufler-ca.com> <5ef4a1ae-e92c-ca77-7089-2efe1d4c4e6d@schaufler-ca.com> <1a9f9182-9188-2f64-4a17-ead2fed70348@schaufler-ca.com> <2225aec6-f0f3-d38e-ee3c-6139a7c25a37@I-love.SAKURA.ne.jp> <5995f18c-5623-9d97-0aa6-5f13a2a8e895@I-love.SAKURA.ne.jp> <77ec837a-ff64-e6f0-fe14-a54c1646ea0b@canonical.com> <0fcc5444-a957-f107-25a1-3540588eab5a@I-love.SAKURA.ne.jp> From: Casey Schaufler In-Reply-To: <0fcc5444-a957-f107-25a1-3540588eab5a@I-love.SAKURA.ne.jp> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: keescook@chromium.org, SElinux list , James Morris , Mimi Zohar , LSM List , linux-audit@redhat.com Errors-To: linux-audit-bounces@redhat.com Sender: "Linux-audit" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 10/25/2022 4:20 AM, Tetsuo Handa wrote: > On 2022/10/25 19:26, John Johansen wrote: >> no, Casey is not. He is trying to find a path forward to get LSM >> stacking upstream sooner than later. He has made proposals that >> admittedly you have not liked, but he has at least tried to propose >> ideas that could work within the insane set of constraints. > I'm OK with getting LSM stacking upstream. But changes made based on > only built-in modules are bad. If LSM id cannot be assigned to loadable > LSM modules at runtime because not all loadable LSM modules will be > in-tree in order to get an LSM id assigned, loadable LSM modules won't > be able to utilize e.g. lsm_module_list system call (or whatever > changes made while trying to unshare resources/interfaces currently > shared among SELinux/Smack/AppArmor). > > It will be a complete reinvention of Linux security framework which is > merely borrowing hooks provided by LSM. That is no different from > duplicating existing LSM hooks and managing via completely different > set of interfaces (e.g. /proc/$pid/attr2/$lsmname/$filename , > /sys/kernel/security2/$lsmname/$filename ). Such implementation is > no longer loadable LSM. It is LSM version 2. And I don't think that > such implementation will be accepted unless you agree to kill current > LSM (say, LSM version 1). The counter argument to this statement is that BPF has been accepted upstream. eBPF programs are different from built-in security modules. There is no reason that a well implemented LSM that accepts loadable modules *that are different* from built-in modules couldn't be created. I seriously doubt that it would get upstream for all the reasons usually cited. But there is nothing about the implementation I've proposed that would prevent it. -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit