git: 3fe8d7695f17 - main - geom: Restore group operator
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Nov 2026 13:49:23 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=3fe8d7695f176a9f8c10c4b8f5ef752bf96e3023
commit 3fe8d7695f176a9f8c10c4b8f5ef752bf96e3023
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-11-20 15:39:21 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-11-24 13:49:01 +0000
geom: Restore group operator
Traditionally, in BSD, the operator group has been intended for backup
operators and has been granted read-only access to disks and related
devices. This includes geom.ctl, because backup operators need to be
able to dump partition tables.
Unfortunately, the geom.ctl device previously lacked proper access
control, and anyone with read access to it was able to modify GEOM
configuration, including modifying or destroying partitions, RAID
volumes, etc. As a workaround, the ownership of geom.ctl was changed to
root:wheel so that only users who presumably already have root
privileges were able to access it.
Now that access control has been implemented, we can restore the
original ownership so backup operators can once more dump partition
tables.
This reverts commit 7d576f1d657fc21f97cedc28cc971621ee2490a7.
---
sys/geom/geom_ctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c
index 64a56908e0ea..f2b44c5ef2f2 100644
--- a/sys/geom/geom_ctl.c
+++ b/sys/geom/geom_ctl.c
@@ -70,7 +70,7 @@ g_ctl_init(void)
{
make_dev_credf(MAKEDEV_ETERNAL, &g_ctl_cdevsw, 0, NULL,
- UID_ROOT, GID_WHEEL, 0640, PATH_GEOM_CTL);
+ UID_ROOT, GID_OPERATOR, 0640, PATH_GEOM_CTL);
}
/*