Page MenuHomeFreeBSD

D60408.id188866.diff
No OneTemporary

D60408.id188866.diff

diff --git a/cddl/usr.sbin/dwatch/dwatch b/cddl/usr.sbin/dwatch/dwatch
--- a/cddl/usr.sbin/dwatch/dwatch
+++ b/cddl/usr.sbin/dwatch/dwatch
@@ -717,8 +717,9 @@
############################################################ MAIN
-# If we're running as root, no need for sudo(8)
+# If we're running as root, no need for mdo(1) or sudo(8)
[ "$( id -u )" != 0 ] && type sudo > /dev/null 2>&1 && SUDO=sudo
+[ "$( id -u )" != 0 ] && mdo true > /dev/null 2>&1 && SUDO=mdo
#
# Process command-line options
diff --git a/cddl/usr.sbin/dwatch/dwatch.1 b/cddl/usr.sbin/dwatch/dwatch.1
--- a/cddl/usr.sbin/dwatch/dwatch.1
+++ b/cddl/usr.sbin/dwatch/dwatch.1
@@ -22,7 +22,7 @@
.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd July 4, 2026
+.Dd October 6, 2026
.Dt DWATCH 1
.Os
.Sh NAME
@@ -65,7 +65,9 @@
utility uses
.Xr dtrace 1
to display process info when a given DTrace probe point is triggered.
-Only the root user or users with
+Only the root user or users with either
+.Xr mdo 1
+or
.Xr sudo 8 Pq Pa ports/security/sudo
access can run this command.
.Pp

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 7, 8:58 PM (8 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40375736
Default Alt Text
D60408.id188866.diff (1 KB)

Event Timeline