From owner-svn-src-head@freebsd.org Mon Oct 23 13:34:48 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DDAD1E4BDE0; Mon, 23 Oct 2017 13:34:48 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: from mail-oi0-x229.google.com (mail-oi0-x229.google.com [IPv6:2607:f8b0:4003:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DA9870E8E; Mon, 23 Oct 2017 13:34:48 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: by mail-oi0-x229.google.com with SMTP id f66so30703855oib.2; Mon, 23 Oct 2017 06:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LxV7A12FVrLtywWvMGfejdvtiBLZZd92g+Ou4ll+0qs=; b=d5D5XecNwdESsMJqPUQlOJG7eN9ibksBnqWFTembu4Rj0UmPgQa3tZsRYm5cwapH0V nXz6/JGdlZDPcCKBEAC8C3FIZL2TDgdLC41XhzwN9RZkY4vfdc7KPKZI25T/je17Eykb dNv/8YVQNOO5ZklhunDMpN1B1TOam9ID3nGNZANKApedPH0kLJbeQUY29Q03Gto0XPyJ RDiLPHkWQfrhBYkRbLyMwtIMXmtbVJzarVI1JNSbP0vrGc95u3FiXqudadJF2CBezs7C YWbsvtVm+/1BoswrOC66uLbbp+R6vgera01xiT2ictp19mIOhRjhTx7UiqS75Td0LJKZ s8YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LxV7A12FVrLtywWvMGfejdvtiBLZZd92g+Ou4ll+0qs=; b=Hb2Yeos50nSejAQI0IsZgbf63uYsksOglq7BbAjDl1/kfyG2g+QKPOMiE9HI1wzA/S i/FGClD0Urcr4O8QsS2bvqIOgYr3FdKVIEZ85yGcMNwF428J391JSbVKDBlh3gwGV9Bg T0e4n7TTvBag5SteAmcNvISrM1Jb4zhTT6yw2R+MzONaYNg1QZrwQJA5PqE28Vqxc6Mi xr02cs+6J46NFF+mWUy3L48nLjAxfc4ZSLXn6eLzWdguqkVe24+8iH4VvyWeTXxBq7nQ Qya1gjupuDz74ET8EUX5ARnD07lU2MKj1Rk1d8yW5vb5YsPjn0pNJwDvxfW6vsGNcGHW ZM1A== X-Gm-Message-State: AMCzsaXBqSwLgbhWLBWToLaXKMkdyY64e/KvsJu0LSr9rOlP0JxKO52D wrvKD9IGwsa0X0xpDDRqRTDeTbXM7CTKu4+zof4= X-Google-Smtp-Source: ABhQp+QWlgMDDTOamrUsPDhPp1yYcMAYKv2rpbBv29oLYPdSqaq6TNSz5uFyO6Zp2D9TqwGZgQhABeRK2/nV+Hs8WMU= X-Received: by 10.202.59.139 with SMTP id i133mr7475368oia.103.1508765687870; Mon, 23 Oct 2017 06:34:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.41.6 with HTTP; Mon, 23 Oct 2017 06:34:47 -0700 (PDT) In-Reply-To: <92f4d6a9-6fc7-5fbd-7fce-8584c090526d@FreeBSD.org> References: <201705231659.v4NGxOB8013882@repo.freebsd.org> <96e0c0bc-eb9c-2ffa-9216-88678d0e8730@freebsd.org> <92f4d6a9-6fc7-5fbd-7fce-8584c090526d@FreeBSD.org> From: Benjamin Kaduk Date: Mon, 23 Oct 2017 08:34:47 -0500 Message-ID: Subject: Re: svn commit: r318751 - in head/sys: kern sys To: Steve Wills Cc: Allan Jude , Steven Hartland , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2017 13:34:49 -0000 On Mon, Oct 23, 2017 at 8:31 AM, Steve Wills wrote: > > Note too that security.bsd.see_jail_proc is partially a work around for > the fact that security.bsd.see_other_* doesn't work as you might expect. > It's literally the UID/GID, rather than the username, so > security.bsd.see_other_* has no idea that the users in the jail are not the > same users on the host, which is unexpected and counter-intuitive at best > and dangerous at worst. (Even if that were changed, > security.bsd.see_jail_proc is still useful for the potential scenario where > you don't want/need to set security.bsd.see_other_* but don't want users to > see processes in jails.) security.bsd.see_other_* cannot do anything *but* UID/GID -- note that it is supported to have multiple user entries on a single system that share a UID, and the username used to log in is not tracked by the kernel. (E.g., root and toor.) -Ben