Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2005 10:57:19 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 79905 for review
Message-ID:  <200507101057.j6AAvJWR050699@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=79905

Change 79905 by rwatson@rwatson_zoo on 2005/07/10 10:56:45

	Use the uid and gid requested by the caller when creating a device
	node, rather than always using the uid and gid in the passed cloning
	credential.  This allows the caller to decide which to use and
	where -- for example, selecting the credential's uid, but a gid of
	'tty'.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sys/kern/kern_conf.c#14 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/sys/kern/kern_conf.c#14 (text+ko) ====

@@ -419,9 +419,8 @@
 		dev->si_cred = crhold(cr);
 	else
 		dev->si_cred = NULL;
-	dev->si_uid = cr ? cr->cr_uid : uid;
-	dev->si_gid = cr ? cr->cr_gid : gid;
-	dev->si_cred = cr ? crhold (cr) : NULL;
+	dev->si_uid = uid;
+	dev->si_gid = gid;
 	dev->si_mode = mode;
 
 	devfs_create(dev);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507101057.j6AAvJWR050699>