svn commit: r350205 - stable/12/sys/dev/nand

Ed Maste emaste at FreeBSD.org
Mon Jul 22 01:06:07 UTC 2019


Author: emaste
Date: Mon Jul 22 01:06:06 2019
New Revision: 350205
URL: https://svnweb.freebsd.org/changeset/base/350205

Log:
  nand: create device with 0640 permission
  
  rw-r----- is the usual/standard permissions for such devices.
  
  Direct commit to stable/12 as this code has been removed in HEAD.
  
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/12/sys/dev/nand/nand_cdev.c

Modified: stable/12/sys/dev/nand/nand_cdev.c
==============================================================================
--- stable/12/sys/dev/nand/nand_cdev.c	Sun Jul 21 20:16:48 2019	(r350204)
+++ stable/12/sys/dev/nand/nand_cdev.c	Mon Jul 22 01:06:06 2019	(r350205)
@@ -101,7 +101,7 @@ nand_make_dev(struct nand_chip *chip)
 	parent_unit = device_get_unit(parent);
 	unit = parent_unit * 4 + chip->num;
 	chip->cdev = make_dev(&nand_cdevsw, unit, UID_ROOT, GID_WHEEL,
-	    0666, "%s%d.%d", name, parent_unit, chip->num);
+	    0640, "%s%d.%d", name, parent_unit, chip->num);
 
 	if (chip->cdev == NULL)
 		return (ENXIO);


More information about the svn-src-stable-12 mailing list