[Bug 226918] net-mgmt/monitoring-plugins: check_mailq sudo option requires build time security/sudo dependency to work

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 25 16:23:36 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226918

            Bug ID: 226918
           Summary: net-mgmt/monitoring-plugins: check_mailq sudo option
                    requires build time security/sudo dependency to work
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: alexander at wittig.name
                CC: garga at FreeBSD.org, mat at FreeBSD.org
                CC: garga at FreeBSD.org, mat at FreeBSD.org

The check_mailq plugin has an option to use sudo to execute the mailq command
with limited privileges. However, the detection of the sudo command is done at
build time, and the path is hard-coded into
"/usr/local/libexec/nagios/utils.pm" as PATH_TO_SUDO. If none is found, this
value is set to an empty string, effectively disabling the feature.

When building with portmaster, this was not an issue as the build picked up on
the installed sudo reliably, but of course clean room builds with poudriere
don't do that any more.

Solution: either make sudo a required or optional build-time and run-time
dependency of this port to ensure correct sudo path is picked up during build.

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


More information about the freebsd-ports-bugs mailing list