Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 2004 00:56:34 -0400
From:      Anish Mistry <mistry.7@osu.edu>
To:        freebsd-current@freebsd.org
Subject:   devfs rules not applied on reattach
Message-ID:  <200408240056.42066.mistry.7@osu.edu>

next in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 Not sure if this is a bug or not, but my understanding of device rules tha=
t=20
are placed in /etc/devfs.conf are supposed to be applied when a device is=20
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 applie=
s=20
them, but shouldn't they be reapplied when the device disappears and=20
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 no=
t=20
0666 like the rule in devfs.conf
Is this expected behavior?

Thanks,

=2D --=20
Anish Mistry
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBKsqJxqA5ziudZT0RApWuAKC44HrE0ZzZttTELpgc42k4PTXIEgCfT8VX
PvFo92hJ2f/0gvj8ojTYvNs=3D
=3DJLdx
=2D----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408240056.42066.mistry.7>