xref: /aosp_15_r20/external/ublksrv/utils/ublk_dev.rules (revision 94c4a1e103eb1715230460aab379dff275992c20)
1# SPDX-License-Identifier: MIT or GPL-2.0-only
2# Udev rules for ublk devices.
3
4KERNEL=="ublk-control", MODE="0666", OPTIONS+="static_node=ublk-control"
5ACTION=="add",KERNEL=="ublk[bc]*",RUN+="/usr/local/sbin/ublk_chown.sh %k 'add' '%M' '%m'"
6ACTION=="remove",KERNEL=="ublk[bc]*",RUN+="/usr/local/sbin/ublk_chown.sh %k 'remove' '%M' '%m'"
7