# This file specifies the permissions that the users defined in the .lg_secret
# file have, in the context of the rgpiod(1) daemon. The file is split into
# named [sections]; #-prefixed lines and suffixes are ignored as comments, and
# blank lines are also ignored. See rgpiod(1) for full details of all sections.
# The following commented examples illustrate a typical file layout.

#[debug]
#joan=y  # joan may use the debug commands; no other users can

#[files]
## joan can create, read, and write files under /tmp (u), has no access to files
## under the working directory (n), can read files under <workingdir>/TEST (r),
## and can create, read, and write files under <workingdir>/TEST/TEST (u). The
## working directory defaults to the configuration directory; please refer to
## /etc/default/rgpiod for more information
#joan=/tmp/* u:* n:TEST/* r:TEST/TEST/* u

#[gpio]
#joan=1,2.*       # user joan can access all GPIO of gpiochips 1 and 2.
#fred=0.2-27      # user fred can access gpiochip 0 GPIO 2-27.
#pete=*.1,2       # user pete can access all gpiochips GPIO 1 and 2.
#sally=0.2-27:3.* # user sally can access gpiochip 0 GPIO 2-27 and
#                 # all GPIO of gpiochip 3.

#[i2c]
#joan=1,2.*        # user joan can access all devices on I2C buses 1 and 2.
#fred=0.3-127      # user fred can access I2C bus 0 devices 3-127.
#pete=*.83,89     # user pete can access all I2C buses devices 83 and 89.
#sally=0.80-99:3.* # user sally can access I2C bus 0 devices 80-99 and
#                  # all devices of I2C bus 3.

#[notify]
#joan=y  # joan may use the notify commands; no other users can

#[scripts]
#joan=y  # joan may use the scripting commands; no other users can

#[serial]
#fred=serial0         # user fred can access /dev/serial0.
#pete=tty*            # user pete can access /dev/tty*.
#sally=serial?:ttyS*  # user sally can access /dev/serial? and /dev/ttyS*.

#[shell]
#joan=y  # joan may execute shell scripts; no other users can

#[spi]
#joan=1,2.*       # user joan can access all slaves on SPI buses 1 and 2.
#fred=0.0-2       # user fred can access SPI bus 0 slaves 0-2.
#pete=*.0         # user pete can access all SPI buses slave 0.
#sally=0.0-2:1.*  # user sally can access SPI bus 0 slaves 0-2 and
#                 # all slaves of SPI bus 1.
