Solved Have only sound devices in jail

All devices show up in the jail, but i want only the sound devices.
[I want to play a nice tune when poudriere finishes]

my jail.conf
Code:
path = "/jails/$name";
host.hostname = "$name";
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
ip4 = inherit;
ip6 = inherit;
mount.devfs;
mount.fdescfs;
allow.mount;
allow.mount.devfs;
allow.mount.fdescfs;
allow.mount.nullfs;
allow.mount.tmpfs;
allow.mount.procfs;
allow.mount.zfs;
enforce_statfs=1;
children.max=100;
allow.socket_af;
allow.raw_sockets;
allow.chflags;
allow.sysvipc;
pj {
devfs_ruleset="20";
}

my devfs.rules:
Code:
[system=10]
add path 'usb/*' mode 0666 group operator
add path 'acd*'  mode 0666 group operator
add path 'cd*'   mode 0666 group operator
#SCSI
add path 'pass*' mode 0666 group operator
#SCSI
add path 'xpt*'  mode 0666 group operator

[pj=20]
add path 'mixer*' unhide
add path 'dsp*' unhide
I think i have to tell the jail to hide all first ?
I tried "add path '*' hide" but that did not worked.
I tried "add include $devfsrules_hide_all" but that did not worked.
 
Back
Top