From nobody Sat Feb 24 20:00:42 2024 X-Original-To: stable@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 4ThyRk4slYz5BV87 for ; Sat, 24 Feb 2024 20:00:50 +0000 (UTC) (envelope-from vince@hightek.org) Received: from mail.ngtek.org (ngtek.org [IPv6:2001:19f0:6400:8963:5400:ff:fe09:9585]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4ThyRk0988z49PP for ; Sat, 24 Feb 2024 20:00:49 +0000 (UTC) (envelope-from vince@hightek.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of vince@hightek.org designates 2001:19f0:6400:8963:5400:ff:fe09:9585 as permitted sender) smtp.mailfrom=vince@hightek.org Received: from [170.39.28.55] (helo=marble.hightek.org) by mail.ngtek.org with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89 (FreeBSD)) (envelope-from ) id 1rdyCQ-000777-Bv for stable@freebsd.org; Sat, 24 Feb 2024 14:00:42 -0600 Received: from vince by marble.hightek.org with local (Exim 4.95 (FreeBSD)) (envelope-from ) id 1rdyCQ-000Eg4-4z for stable@freebsd.org; Sat, 24 Feb 2024 14:00:42 -0600 Date: Sat, 24 Feb 2024 14:00:42 -0600 From: Vincent Stemen To: stable@freebsd.org Subject: Re: gpart device permissions security hole (/dev/geom.ctl) Message-ID: References: <2421f1a5-d924-4912-abff-e000e41f5459@quip.cz> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2421f1a5-d924-4912-abff-e000e41f5459@quip.cz> X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.94 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; NEURAL_HAM_SHORT(-0.94)[-0.943]; FORGED_SENDER(0.30)[vince.bsd@hightek.org,vince@hightek.org]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:6400::/38, country:US]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DMARC_NA(0.00)[hightek.org]; FROM_NEQ_ENVFROM(0.00)[vince.bsd@hightek.org,vince@hightek.org]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4ThyRk0988z49PP On Sat, Feb 24, 2024 at 04:40:00PM +0100, Miroslav Lachman wrote: > I agree with this security problem. Just a small note - there are > backups of partitions (/var/backups/gpart.*) created by periodic script > /etc/periodic/daily/221.backup-gpart (if you have > daily_backup_gpart_enable="YES" in your /etc/periodic.conf or in a > /etc/defaults/periodic.conf which is the default). That way you can get > back the number plate on you house in some cases. Thanks. That's good to know. I was not aware of those features of periodic.