# SPDX-License-Identifier: BSD-2-Clause
KERNEL=="tee[0-9]*", MODE="0660", OWNER="root", GROUP="tee", TAG+="systemd"

# If a /dev/teepriv[0-9]* device is detected, start an instance of
# tee-supplicant.service with the device name as parameter
KERNEL=="teepriv[0-9]*", MODE="0660", OWNER="root", GROUP="teepriv", \
    TAG+="systemd", ENV{SYSTEMD_WANTS}+="tee-supplicant@%k.service"
