Page MenuHomeFreeBSD

sysutils/podman: Allow setting ownership on auto-created socket
ClosedPublic

Authored by dch on Feb 23 2026, 11:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 26, 9:12 AM
Unknown Object (File)
Mon, Mar 23, 2:30 AM
Unknown Object (File)
Mon, Mar 23, 12:42 AM
Unknown Object (File)
Sun, Mar 22, 2:12 AM
Unknown Object (File)
Sat, Mar 21, 8:20 PM
Unknown Object (File)
Sat, Mar 21, 3:41 PM
Unknown Object (File)
Fri, Mar 20, 7:50 AM
Unknown Object (File)
Fri, Mar 20, 6:05 AM
Subscribers
None

Details

Summary

The podman_service daemon auto-creates a socket on startup, along with
parent directory, and is always run as root. It is often useful to have
another proxy like haproxy or nginx provide more sophisticated security,
and these daemons do not need root privileges.

Test Plan
  • use podman_service instead of podman daemon (thanks arrowd)
  • rename all the vars accordingly
  • PORTREVISION++ again to ensure we are past reverted commit

try this:

# /etc/rc.conf.d/podman_service
podman_service_enable=YES
podman_service_flags='--time 0'
podman_service_api_user=$YOU
podman_service_api_group=$GROUP

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70914
Build 67797: arc lint + arc unit

Event Timeline

dch requested review of this revision.Feb 23 2026, 11:46 AM
dch created this revision.
dch edited the test plan for this revision. (Show Details)
dch edited reviewers, added: dfr; removed: d.raith_comcast.net.
dch edited the test plan for this revision. (Show Details)

ensure default perms align with prior behaviour

sysutils/podman/files/podman_service.in
29

Another option might be "operator".

30

This should be 0770 to make the socket actually useful for the group.

Thanks for fixing the style nits. For group ownership, I have a slight preference for wheel but operator would also be reasonable. The permission of 0770 suggested by arrowd@ will work but I don't think we need execute permissions so perhaps 0660 instead?

This revision is now accepted and ready to land.Feb 23 2026, 1:15 PM

If I understand it correctly, we need "7" to be set on podman_service_rundir to allow listing its contents. Client programs usually first check for socket existence which requires the ability to list dir's contents.

If I understand it correctly, we need "7" to be set on podman_service_rundir to allow listing its contents. Client programs usually first check for socket existence which requires the ability to list dir's contents.

That makes perfect sense, thanks!

frustratingly the var names I've chosen conflict with existing rc.subr ones :-( I need to rework these *again*

use group and user vars that don't conflict with rc.subr

This revision now requires review to proceed.Fri, Mar 6, 3:26 PM
dch marked 2 inline comments as done.Fri, Mar 6, 4:22 PM
This revision is now accepted and ready to land.Mon, Mar 9, 7:25 AM