summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2008-09-27 17:52:48 +0000
committerjb <jb@FreeBSD.org>2008-09-27 17:52:48 +0000
commit82b3ad7e97d673439f16f4942b00d7a5704c5c2b (patch)
tree23d1cf1aadbffff02aa0d1b9bf9c6942c206efc0 /sys/cddl
parentb13cd39d114cd83227986266ac0f444acf0c9b22 (diff)
downloadFreeBSD-src-82b3ad7e97d673439f16f4942b00d7a5704c5c2b.zip
FreeBSD-src-82b3ad7e97d673439f16f4942b00d7a5704c5c2b.tar.gz
Disable use of the user credentials until there is code to set the levels
that DTrace uses. This fixes a bug that would have affected kernels built with MAC and all kernels built after the mpsafetty integration. The bug will be apparent in RELENG7 on MAC kernels. Reported by: kan
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
index 847a1ba..71a8317 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
@@ -12815,7 +12815,11 @@ dtrace_state_create(struct cdev *dev)
state = ddi_get_soft_state(dtrace_softstate, minor);
#else
if (dev != NULL) {
- cr = dev->si_cred;
+ /*
+ * Disable this until we have the ability to set user
+ * credentials for DTrace.
+ * cr = dev->si_cred;
+ */
m = dev2unit(dev);
}
OpenPOWER on IntegriCloud