Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5140423rwb; Mon, 8 Aug 2022 12:58:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR4HbCn7DxSMAJPDpfE8oHUP0tFQrS9qtCDKbT2E8p3LnGlaplhR/je0qe1VivPedJEXufyQ X-Received: by 2002:a17:90b:897:b0:1f5:3cbf:fc5e with SMTP id bj23-20020a17090b089700b001f53cbffc5emr21818137pjb.180.1659988703869; Mon, 08 Aug 2022 12:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659988703; cv=none; d=google.com; s=arc-20160816; b=qeikPEx/SzlhpCgiiCqX53QqqXQB2/Sooe8oXWx4Y9931qKtBB2mNT2Z4X4f/Wufig 8VRFYoVwGAg6QBno9OzgBhUtEXIFlWKCQgKeJwM2zqA3SUORepkA5pCW/Kd3agRs+Nwr RmtnCohNTSU27XaUznq0jpFn58G2imJgnqYUkSvu7X0sG8C2fMpr8KJrD5prJ+cOR8OM Ic8A8i8k0aDEnz+SyfUZAhWClYIWSGtNuZpByMj5qImER/pZrWPR4A8vKNtOnkRDjS8+ m453kCvKNPtaM9OWZgruUrAI+ULO+jUCQfT+05btdFqk6fwgPiNcz0mk4gVU0rt7BXfh vPPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:mime-version:user-agent:message-id :in-reply-to:date:references:cc:to:from; bh=aFnosr//hL12bVGUv1SJr4MBwD3zFqwOrnvBh37Rnlc=; b=xGVS18JVIjFZhHnzWIaWSsStid/WHME1TQWn1J0kWIQotRLAoWzdHSEgQOpXmD8/uW l7dSyF/szSJBmI9DB0W2MJZGHm1Yl2QYNb8+GRiLGbAx3Ehd/fRfdfq6mdxsJqNftWRq ULS8lkqrEBCCi5150Fku+Iwqx6jxJronkcQ6QxljYEJAZmkIbEclunUTSRryinN4XHpv ly0YP10gqqRgGbguxgmTiEV7ttn3ilhfZUr6PTACV1cX1HJl+z6/4joqraKlyX7dc4Lb uY0weHh8BrbwFPO8y8Gfm053PLonR3a0WRfbI19WIQDmBFWFeHaSSi5ASy0eYTKjWoZP hj3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a170902748c00b0016da78aeff7si11738038pll.215.2022.08.08.12.58.07; Mon, 08 Aug 2022 12:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244235AbiHHTnz (ORCPT + 99 others); Mon, 8 Aug 2022 15:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiHHTnx (ORCPT ); Mon, 8 Aug 2022 15:43:53 -0400 Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF07E15FCE; Mon, 8 Aug 2022 12:43:52 -0700 (PDT) Received: from in01.mta.xmission.com ([166.70.13.51]:46388) by out02.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1oL8fH-001pl8-Ah; Mon, 08 Aug 2022 13:43:51 -0600 Received: from ip68-227-174-4.om.om.cox.net ([68.227.174.4]:48182 helo=email.froward.int.ebiederm.org.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1oL8fF-0000Cc-8i; Mon, 08 Aug 2022 13:43:50 -0600 From: "Eric W. Biederman" To: Paul Moore Cc: Frederick Lawler , kpsingh@kernel.org, revest@chromium.org, jackmanb@chromium.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, jmorris@namei.org, serge@hallyn.com, stephen.smalley.work@gmail.com, eparis@parisplace.org, shuah@kernel.org, brauner@kernel.org, casey@schaufler-ca.com, bpf@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, kernel-team@cloudflare.com, cgzones@googlemail.com, karl@bigbadwolfsecurity.com References: <20220801180146.1157914-1-fred@cloudflare.com> <87les7cq03.fsf@email.froward.int.ebiederm.org> <87wnbia7jh.fsf@email.froward.int.ebiederm.org> <877d3ia65v.fsf@email.froward.int.ebiederm.org> Date: Mon, 08 Aug 2022 14:43:41 -0500 In-Reply-To: <877d3ia65v.fsf@email.froward.int.ebiederm.org> (Eric W. Biederman's message of "Mon, 08 Aug 2022 14:26:04 -0500") Message-ID: <87bksu8qs2.fsf@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1oL8fF-0000Cc-8i;;;mid=<87bksu8qs2.fsf@email.froward.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=68.227.174.4;;;frm=ebiederm@xmission.com;;;spf=softfail X-XM-AID: U2FsdGVkX18w+E5Cxj1n69OoP6ymAbIqRscQLirhtVs= X-SA-Exim-Connect-IP: 68.227.174.4 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;Paul Moore X-Spam-Relay-Country: X-Spam-Timing: total 1482 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 12 (0.8%), b_tie_ro: 10 (0.7%), parse: 1.06 (0.1%), extract_message_metadata: 16 (1.1%), get_uri_detail_list: 1.65 (0.1%), tests_pri_-1000: 18 (1.2%), tests_pri_-950: 1.29 (0.1%), tests_pri_-900: 1.03 (0.1%), tests_pri_-90: 154 (10.4%), check_bayes: 151 (10.2%), b_tokenize: 8 (0.5%), b_tok_get_all: 9 (0.6%), b_comp_prob: 2.9 (0.2%), b_tok_touch_all: 128 (8.6%), b_finish: 0.96 (0.1%), tests_pri_0: 1265 (85.3%), check_dkim_signature: 0.52 (0.0%), check_dkim_adsp: 7 (0.5%), poll_dns_idle: 0.49 (0.0%), tests_pri_10: 2.2 (0.1%), tests_pri_500: 9 (0.6%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH v4 0/4] Introduce security_create_user_ns() X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Eric W. Biederman" writes: > Paul Moore writes: > >>> I did provide constructive feedback. My feedback to his problem >>> was to address the real problem of bugs in the kernel. >> >> We've heard from several people who have use cases which require >> adding LSM-level access controls and observability to user namespace >> creation. This is the problem we are trying to solve here; if you do >> not like the approach proposed in this patchset please suggest another >> implementation that allows LSMs visibility into user namespace >> creation. > > Please stop, ignoring my feedback, not detailing what problem or > problems you are actually trying to be solved, and threatening to merge > code into files that I maintain that has the express purpose of breaking > my users. > > You just artificially constrained the problems, so that no other > solution is acceptable. On that basis alone I am object to this whole > approach to steam roll over me and my code. If you want an example of what kind of harm it can cause to introduce a failure where no failure was before I invite you to look at what happened with sendmail when setuid was modified to fail, when changing the user of a process would cause RLIMIT_NPROC to be exceeded. I am not arguing that what you are proposing is that bad but unexpected failures cause real problems, and at a minimum that needs a better response than: "There is at least one user that wants a failure here". Frankly I would love to see an argument that semantically it ever makes sense for creating a user namespace to fail. If that argument has already been made, my apologies to the person who made as I missed it, in being sick and tired, and frustrated at being blown off, when I asked for a proper discuss of the problem at hand. Eric