Rename devfs device and access renamed device in a jail

Is there a way to rename a device (e.g. using devfs rules) within /dev (e.g. rename /dev/cuaU0 -> /dev/zigbee) or create a second node that points to the same piece of hardware (i.e. both /dev/cuaU0 and /dev/zigbee refer to the same device)?
I would like to pass a custom named device (e.g. /dev/zigbee) into a jail.

I have had a look at this thread that recommended putting a link in /etc/devfs.conf, but the man page says "The devfs.conf file provides an easy way to set ownership and permissions, or create links for devices available at boot. It does not work for devices plugged in and out after the system is up and running, e.g. USB devices." Also, the line would be `link cuaU0 zigbee`, but I could not guarantee that the same device would be cuaU0 every time I boot up.

Background:
I have hit the same roadblock as this post and this post that both wanted to do similar things.
I have a USB device that is accessible under /dev/cuaU0 on the host.
I can pass cua* into jails by creating a custom devfs ruleset.
I can create a devd rule that creates a symlink to from /dev/zigbee to /dev/cuaU0 when the device is plugged in, and removes the symlink when the device is removed.
But I can't pass this symlink into the jails for the reasons outlined in the two posts linked above.
 
had the same problem, opted for a sym link in a different folder:
Code:
# devd/zwave.conf
attach 90 {
        device-name "uslcom[0-9]";
        match "vendor"          "0x10c4";
        match "product"         "0xea60";
        match "devclass"        "0x00";
        match "sernum"          "0001";
        action "ln -sf cua$ttyname /dev/zwave";
        action "ln -sf /dev/cua$ttyname /jail/zwave/home/zwave/dev/zwave";
};
Code:
# devd/zigbee.conf
attach 90 {
        device-name "umodem[0-9]";
        match "devclass"        "0x02";
        match "vendor"          "0x1cf1";
        match "product"         "0x0030";
        match "sernum"          "DE.....";
        action "ln -sf cua$ttyname /dev/zigbee";
        action "ln -sf /dev/cua$ttyname /jail/ha/home/ha/dev/zigbee";
};
 
Back
Top