Skip to content

Commit e84d542

Browse files
committed
dtrace.1: Document security.bsd.allow_destructive_dtrace
PR: 288284 Reviewed by: bcr, markj MFC after: 3 days Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D51633 (cherry picked from commit 1acfb87)
1 parent 1a6f2bf commit e84d542

File tree

1 file changed

+24
-1
lines changed
  • cddl/contrib/opensolaris/cmd/dtrace

1 file changed

+24
-1
lines changed

cddl/contrib/opensolaris/cmd/dtrace/dtrace.1

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
.\"
2121
.\" $FreeBSD$
2222
.\"
23-
.Dd July 16, 2025
23+
.Dd July 30, 2025
2424
.Dt DTRACE 1
2525
.Os
2626
.Sh NAME
@@ -517,6 +517,17 @@ option is not specified,
517517
.Nm
518518
does not permit the compilation or enabling of a D program that contains
519519
destructive actions.
520+
.Pp
521+
Set the
522+
.Va security.bsd.allow_destructive_dtrace
523+
.Xr loader 8
524+
tunable
525+
to
526+
.Ql 0
527+
to disallow the possibility of enabling destructive actions system-wide at any point at all.
528+
Any attempts to enable destructive actions will cause
529+
.Nm
530+
to exit with a runtime error.
520531
.It Fl x Ar arg Op Ns = Ns value
521532
Enable or modify a DTrace runtime option or D compiler option.
522533
Boolean options are enabled by specifying their name.
@@ -803,6 +814,18 @@ failed or that the specified request could not be satisfied.
803814
.It 2
804815
Invalid command line options or arguments were specified.
805816
.El
817+
.Sh DIAGNOSTICS
818+
.Bl -diag
819+
.It dtrace: could not enable tracing: Permission denied
820+
This can happen when
821+
.Nm
822+
fails to enable destructive actions because
823+
.Va security.bsd.allow_destructive_dtrace
824+
is set to
825+
.Ql 0
826+
in
827+
.Xr loader.conf 5 .
828+
.El
806829
.Sh SEE ALSO
807830
.Xr cpp 1 ,
808831
.Xr dtrace_audit 4 ,

0 commit comments

Comments
 (0)