Module Name: src Committed By: mbalmer Date: Sun May 19 16:09:04 UTC 2013
Modified Files: src/etc: MAKEDEV.tmpl group Log Message: Add a group 'gpio' and create gpio(4) device nodes under /dev with mode 664 and group ownership set to 'gpio'. This allows controlled access to specifically enabled gpio pins to members of the gpio group. See gpioctl(8), and, gpio(4) for details. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/etc/MAKEDEV.tmpl cvs rdiff -u -r1.28 -r1.29 src/etc/group Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/MAKEDEV.tmpl diff -u src/etc/MAKEDEV.tmpl:1.168 src/etc/MAKEDEV.tmpl:1.169 --- src/etc/MAKEDEV.tmpl:1.168 Wed May 1 13:12:00 2013 +++ src/etc/MAKEDEV.tmpl Sun May 19 16:09:04 2013 @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: MAKEDEV.tmpl,v 1.168 2013/05/01 13:12:00 kiyohara Exp $ +# $NetBSD: MAKEDEV.tmpl,v 1.169 2013/05/19 16:09:04 mbalmer Exp $ # # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -496,6 +496,7 @@ setup() u_root="%uid_root%" u_uucp="%uid_uucp%" + g_gpio="%gid_gpio%" g_kmem="%gid_kmem%" g_ntpd="%gid_ntpd%" g_operator="%gid_operator%" @@ -1458,7 +1459,7 @@ hdaudio[0-9]*) gpio[0-9]*) unit=${i#gpio} - mkdev gpio$unit c %gpio_chr% $unit 644 + mkdev gpio$unit c %gpio_chr% $unit 664 $g_gpio ;; rmidi[0-9]*) Index: src/etc/group diff -u src/etc/group:1.28 src/etc/group:1.29 --- src/etc/group:1.28 Sat Jan 28 02:17:29 2012 +++ src/etc/group Sun May 19 16:09:04 2013 @@ -30,4 +30,5 @@ utmp:*:45: authpf:*:72: users:*:100: dialer:*:117: +gpio:*:118: nogroup:*:32766: