Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2019 01:06:07 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r350205 - stable/12/sys/dev/nand
Message-ID:  <201907220106.x6M167kt012229@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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