From owner-svn-src-all@freebsd.org Fri Dec 7 19:00:18 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C02C1316B0F; Fri, 7 Dec 2018 19:00:18 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6DE9872A57; Fri, 7 Dec 2018 19:00:17 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io1-f43.google.com with SMTP id n9so4073118ioh.7; Fri, 07 Dec 2018 11:00:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=mbZ2fS8Tp817z9hGyLUqslByDr9tHKAvRXDiuYLRevY=; b=sly8ISo3HeS9PRz6dy9Hmqu2gDK1lniVpCv77FrXh0wsYoGYZspTSTCa53UdIx1Bf0 TUOTe33NsU5HMVcXKHJFnHFxBqk65Q+x1a1h97lqM3pYff/LHfYHd6axrqdRwlaVMuXo bvpw2mO817lyvUCQNZw1TZqFWiQTc4/UhGigR1vu8joSqrmJHwJL2li71EVkeJmVNX1V SVzUVkuKJ5MIPWaMHQflRSg/8r7suMc3lLMcLwn4/ZJhgc8gjmnSJKatx8XtRJcmsaoA Pz5aeohA9UnvLNlFo9o3SqOPXlxqF0jSQJxkHoEM1eyxAZeXLRu8EvOMnu6yESdk3GTl A5Pw== X-Gm-Message-State: AA+aEWY01y7Sz4D7U1x+oM2kZ6wFkWCgMY38eX99Ozscv1Z2DoqNB/4B TZoM8P0ja/BbEdqC6dmTBDTqyrcf X-Google-Smtp-Source: AFSGD/UMsSE/LOP/+eYXoyIFBGIsblERr89PdFTYF+Kht6RwS4sURt6ZZnQ5wM22uukrj95L3okQMg== X-Received: by 2002:a5e:9905:: with SMTP id t5mr2643376ioj.153.1544209210596; Fri, 07 Dec 2018 11:00:10 -0800 (PST) Received: from mail-it1-f176.google.com (mail-it1-f176.google.com. [209.85.166.176]) by smtp.gmail.com with ESMTPSA id m20sm2330047itm.29.2018.12.07.11.00.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 11:00:10 -0800 (PST) Received: by mail-it1-f176.google.com with SMTP id b5so8654646iti.2; Fri, 07 Dec 2018 11:00:10 -0800 (PST) X-Received: by 2002:a24:5411:: with SMTP id t17mr2969915ita.32.1544209210093; Fri, 07 Dec 2018 11:00:10 -0800 (PST) MIME-Version: 1.0 References: <201812071517.wB7FHTiI035911@repo.freebsd.org> <20181207174757.GI52540@kib.kiev.ua> In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Fri, 7 Dec 2018 10:59:59 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r341689 - in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys To: John Baldwin Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 6DE9872A57 X-Spamd-Result: default: False [-3.73 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.75)[-0.755,0]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; IP_SCORE(-0.97)[ipnet: 209.85.128.0/17(-3.45), asn: 15169(-1.30), country: US(-0.09)]; RCVD_IN_DNSWL_NONE(0.00)[43.166.85.209.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[43.166.85.209.rep.mailspike.net : 127.0.0.17] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2018 19:00:18 -0000 On Fri, Dec 7, 2018 at 10:05 AM John Baldwin wrote: > The > requirement for root mostly mitigates this when root vs not-root is your > only privilege. However, a capsicum vs non-capsicum process is a more > recent privilege that is orthogonal to root vs non-root. It might be that > allowing a capsicumized root to create links to files that were intentionally > unlinked by a non-capsicumized root would be the same problem. None of these syscalls were added to sys/kern/capabilities.conf, so I think a capsicum-contained root cannot use them anyway. Maybe I misunderstand how capabilities.conf works, though. Best, Conrad