[Bug 280438] security/munge: Dependent daemon failure

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 25 Jul 2024 14:32:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280438

            Bug ID: 280438
           Summary: security/munge: Dependent daemon failure
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bofh@freebsd.org
          Reporter: jwb@freebsd.org
          Assignee: bofh@freebsd.org
             Flags: maintainer-feedback?(bofh@freebsd.org)

Odd problem:

I've found that when running FreeBSD as a VM, lpjs_compd is unable to use munge
on initial startup.  So far, the failure happens consistently under Qemu and
VirtualBox.  Oddly, I don't think I've encountered the problem when running on
bare metal.

rc.d/lpjs_compd:

# PROVIDE: lpjs_compd
# REQUIRE: munged
# KEYWORD: shutdown

I've tried various tweaks, such as "LOGIN munged" and "DAEMON munged", to no
avail.

What does fix the issue is changing the munge rc script to use DAEMON rather
than LOGIN:

--- /usr/ports/security/munge/files/munged.in   2024-04-02 08:22:54.039991000
-0500
+++ /usr/ports/wip/munge/files/munged.in        2024-07-25 09:22:48.688638000
-0500
@@ -1,7 +1,7 @@
 #!/bin/sh

 # PROVIDE: munged
-# REQUIRE: LOGIN
+# REQUIRE: DAEMON
 # KEYWORD: shutdown

 # Add the following line to /etc/rc.conf to enable munged:

Was there a specific reason that LOGIN was chosen over DAEMON?  If not, can we
apply the patch above?  I'd like to understand what's happening here, but
fixing the issue ASAP is a higher priority.

-- 
You are receiving this mail because:
You are the assignee for the bug.