Page MenuHomeFreeBSD

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

Authored by dch on Tue, Feb 17, 11:29 PM.
Tags
None
Referenced Files
F147985013: D55339.diff
Sun, Mar 15, 12:47 AM
Unknown Object (File)
Wed, Mar 11, 12:46 PM
Unknown Object (File)
Wed, Mar 11, 11:42 AM
Unknown Object (File)
Wed, Mar 11, 10:18 AM
Unknown Object (File)
Mon, Mar 9, 3:47 PM
Unknown Object (File)
Thu, Mar 5, 11:32 PM
Unknown Object (File)
Sun, Mar 1, 6:17 PM
Unknown Object (File)
Sun, Mar 1, 4:45 AM
Subscribers
None

Details

Summary

The podman 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 sophisticed security, and these daemons do not need root
privileges.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dch requested review of this revision.Tue, Feb 17, 11:29 PM
dch created this revision.

NB I would eventually like to fix this upstream too, but I have need of this functionality already.

After applying this patch to /usr/local/etc/rc.d/podman_service I can now run Podman Desktop without the need to do chmod on the socket. Yay!

Looks good, apart from a tiny style nit.

sysutils/podman/files/podman.in
42–45

Change indentation to line up with other functions below

This revision is now accepted and ready to land.Wed, Feb 18, 10:50 AM

update after go port bump, reflow commit text

This revision now requires review to proceed.Wed, Feb 18, 2:43 PM

Still looks good (apart from the indentation mismatch for podman_prestart)

What about the podman_service rc script? I guess it should get the same change?

This revision was not accepted when it landed; it landed in state Needs Review.Sun, Feb 22, 7:48 PM
This revision was automatically updated to reflect the committed changes.