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
This commit is contained in:
John Birrell 2008-09-27 17:52:48 +00:00
parent 00b4430eb8
commit fd4cdfbf46

View File

@ -12815,7 +12815,11 @@ dtrace_state_create(struct cdev *dev)
state = ddi_get_soft_state(dtrace_softstate, minor); state = ddi_get_soft_state(dtrace_softstate, minor);
#else #else
if (dev != NULL) { 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); m = dev2unit(dev);
} }