Skip to content

Commit

Permalink
nand: create device with 0640 permission
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emaste committed Jul 22, 2019
1 parent 1a2dbf3 commit 88f580f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/nand/nand_cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 88f580f

Please sign in to comment.