PERFORCE change 79905 for review

Robert Watson rwatson at FreeBSD.org
Sun Jul 10 10:57:19 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=79905

Change 79905 by rwatson at 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);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list