File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
cddl/contrib/opensolaris/cmd/dtrace Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 20
20
.\"
21
21
.\" $FreeBSD$
22
22
.\"
23
- .Dd July 16 , 2025
23
+ .Dd July 30 , 2025
24
24
.Dt DTRACE 1
25
25
.Os
26
26
.Sh NAME
@@ -517,6 +517,17 @@ option is not specified,
517
517
.Nm
518
518
does not permit the compilation or enabling of a D program that contains
519
519
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.
520
531
.It Fl x Ar arg Op Ns = Ns value
521
532
Enable or modify a DTrace runtime option or D compiler option.
522
533
Boolean options are enabled by specifying their name.
@@ -803,6 +814,18 @@ failed or that the specified request could not be satisfied.
803
814
.It 2
804
815
Invalid command line options or arguments were specified.
805
816
.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
806
829
.Sh SEE ALSO
807
830
.Xr cpp 1 ,
808
831
.Xr dtrace_audit 4 ,
You can’t perform that action at this time.
0 commit comments