Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174901482
D60408.id188866.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D60408.id188866.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D60408: dwatch(1): Use mdo(1) instead of sudo(8) when configured
Attached
Detach File
Event Timeline
Log In to Comment