From owner-freebsd-hackers@freebsd.org Wed Sep 4 22:30:44 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9B907CFBEC for ; Wed, 4 Sep 2019 22:30:44 +0000 (UTC) (envelope-from freebsd-lists@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 46Nz6n5Lydz3xxW for ; Wed, 4 Sep 2019 22:30:41 +0000 (UTC) (envelope-from freebsd-lists@be-well.ilk.org) Received: from lowell-desk.be-well.ilk.org (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id 05BB033C27; Wed, 4 Sep 2019 18:30:27 -0400 (EDT) Received: by lowell-desk.be-well.ilk.org (Postfix, from userid 1147) id 3FAD31B2BC83; Wed, 4 Sep 2019 18:30:26 -0400 (EDT) From: Lowell Gilbert To: Zaphod Beeblebrox Cc: FreeBSD Hackers Subject: Re: A jail notion. References: Date: Wed, 04 Sep 2019 18:30:26 -0400 In-Reply-To: (Zaphod Beeblebrox's message of "Wed, 4 Sep 2019 14:55:34 -0400") Message-ID: <44zhjjsni5.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 46Nz6n5Lydz3xxW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-lists@be-well.ilk.org has no SPF policy when checking 23.30.133.173) smtp.mailfrom=freebsd-lists@be-well.ilk.org X-Spamd-Result: default: False [-1.42 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.93)[-0.931,0]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.90)[-0.904,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ilk.org]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.46)[-0.463,0]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:23.30.0.0/15, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.13)[ip: (0.15), ipnet: 23.30.0.0/15(0.43), asn: 7922(-1.16), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Sep 2019 22:30:44 -0000 Zaphod Beeblebrox writes: > So... in general, I put jails in /jail. I could, for instance, aggregate > all unique userids and groupids into /etc/master.password and /etc/group by > scanning /jail/*/etc/master.passwd, but then again, I could also run kerb. > This could be further generalized by following the jail root configured in > /etc/jail.conf. > > Now... I admit the fact that not all jails will have a password or group > file, but looking at the fairly vast number of jails that I deploy, at > least for me, they almost all have password and group files. > > What am I getting at? Running top on the host ... many of the jail users > end up as numbers. It would be supremely helpful if top was jail-enabled > in this manner. In fact, although I routinely consider kerberos ... I > don't think it would solve this problem. What does the userid of a process > look like under kerb? > > Anyways... food for thought. A perl hacker could add that too sysutils/jtop...