From nobody Sat Aug 24 17:30:37 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WrkVS1dPwz5TThH for ; Sat, 24 Aug 2024 17:30:40 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [147.160.157.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "A1-48603", Issuer "A1-48603" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WrkVR5Xh0z4M7b for ; Sat, 24 Aug 2024 17:30:39 +0000 (UTC) (envelope-from doug@safeport.com) Authentication-Results: mx1.freebsd.org; none Received: from fledge.watson.org (doug@localhost [127.0.0.1]) by fledge.watson.org (8.17.1/8.17.1) with ESMTPS id 47OHUca2049530 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 24 Aug 2024 17:30:38 GMT (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.17.1/8.17.1/Submit) with ESMTP id 47OHUbt3049524; Sat, 24 Aug 2024 17:30:38 GMT (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Sat, 24 Aug 2024 17:30:37 +0000 (UTC) From: doug@safeport.com Reply-To: doug@fledge.watson.org To: Andrea Venturoli cc: freebsd-questions@freebsd.org Subject: Re: security.bsd.see_other_uids/gids and jails In-Reply-To: Message-ID: References: <902826c1-fc50-48aa-867d-8010b5814df2@netfence.it> <61ed9412-563-a5f-a3c0-66ff23cb5ac4@safeport.com> <0fe260da-43ff-4c14-9807-7b81cec37c83@netfence.it> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6405, ipnet:147.160.157.0/24, country:US] X-Rspamd-Queue-Id: 4WrkVR5Xh0z4M7b On Sat, 24 Aug 2024, Andrea Venturoli wrote: > On 8/24/24 01:58, doug@safeport.com wrote: > >> These setting can be changed in a running jail. See sysctl. > > Thanks, but this does not seem to work. > > root@myhost:~ # freebsd-version -ku > 13.3-RELEASE-p5 > 13.3-RELEASE-p5 > root@myhost:~ # sysctl security.bsd.see_other_uids=0 > security.bsd.see_other_uids: 0 -> 0 > root@myhost:~ # ezjail-admin console myjail > root@myjail:~ # sysctl security.bsd.see_other_uids=1 > security.bsd.see_other_uids: 0 > sysctl: security.bsd.see_other_uids=1: Operation not permitted > > > > Is a newer version of FreeBSD required? > Some jail settings? > Something else? > If you did this command as root, your system is seriously messed up. I did this on a 12.2 system runing as 12.2 jail.