devfs rules not applied on reattach

Anish Mistry mistry.7 at osu.edu
Mon Aug 23 21:55:17 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 Not sure if this is a bug or not, but my understanding of device rules that 
are placed in /etc/devfs.conf are supposed to be applied when a device is 
attached. ie.
perm da0  0666
perm da0s1 0666
perm da1  0666
perm da1s1 0666
perm da2  0666
perm da2s1 0666
perm da3  0666
perm da3s1 0666

These permissions are applied on boot since /etc/rc.d/devfs runs and applies 
them, but shouldn't they be reapplied when the device disappears and 
reappears?  For example:
1) USB 6-in1 reader is attached during boot
2) disk reader is unplugged and device nodes destroyed
3) plug in reader and device nodes come up, but permissions are now 0640 not 
0666 like the rule in devfs.conf
Is this expected behavior?

Thanks,

- -- 
Anish Mistry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBKsqJxqA5ziudZT0RApWuAKC44HrE0ZzZttTELpgc42k4PTXIEgCfT8VX
PvFo92hJ2f/0gvj8ojTYvNs=
=JLdx
-----END PGP SIGNATURE-----


More information about the freebsd-current mailing list