diff options
author | jb <jb@FreeBSD.org> | 2008-09-27 17:52:48 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2008-09-27 17:52:48 +0000 |
commit | 82b3ad7e97d673439f16f4942b00d7a5704c5c2b (patch) | |
tree | 23d1cf1aadbffff02aa0d1b9bf9c6942c206efc0 /sys/cddl | |
parent | b13cd39d114cd83227986266ac0f444acf0c9b22 (diff) | |
download | FreeBSD-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.c | 6 |
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); } |