Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2018 16:23:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 226918] net-mgmt/monitoring-plugins: check_mailq sudo option requires build time security/sudo dependency to work
Message-ID:  <bug-226918-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226918

            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@FreeBSD.org
          Reporter: alexander@wittig.name
                CC: garga@FreeBSD.org, mat@FreeBSD.org
                CC: garga@FreeBSD.org, mat@FreeBSD.org

The check_mailq plugin has an option to use sudo to execute the mailq comma=
nd
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 bui=
ld.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226918-13>