Date: Sat, 22 Apr 2006 23:26:16 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95900 for review Message-ID: <200604222326.k3MNQGs9014768@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95900 Change 95900 by jb@jb_freebsd2 on 2006/04/22 23:25:30 When cloning the device, clone the credentials too. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_clone.c#2 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_clone.c#2 (text+ko) ==== @@ -43,7 +43,7 @@ /* Clone the device to the new minor number. */ if (clone_create(&dtrace_clones, &dtrace_cdevsw, &u, dev, 0) != 0) /* Create the /dev/dtraceNN entry. */ - *dev = make_dev(&dtrace_cdevsw, unit2minor(u), + *dev = make_dev_cred(&dtrace_cdevsw, unit2minor(u), cred, UID_ROOT, GID_WHEEL, 0600, "dtrace%d", u); if (*dev != NULL) { dev_ref(*dev);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604222326.k3MNQGs9014768>