Date: Wed, 13 Feb 2013 16:10:01 GMT From: John Baldwin <jhb@freebsd.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/75233: [fdc] breaking fdformat /dev/fd0 resets device permissions and perhaps causes unkillable process Message-ID: <201302131610.r1DGA1fa086267@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/75233; it has been noted by GNATS. From: John Baldwin <jhb@freebsd.org> To: Christoph Mallon <christoph.mallon@gmx.de> Cc: bug-followup@freebsd.org Subject: Re: kern/75233: [fdc] breaking fdformat /dev/fd0 resets device permissions and perhaps causes unkillable process Date: Wed, 13 Feb 2013 11:00:00 -0500 On Tuesday, February 12, 2013 2:13:16 am Christoph Mallon wrote: > On 30.03.2012 16:07, John Baldwin wrote: > > You need to use devfs rules for this instead. The /dev/fd0 device can > > come and go with media changes. To make permissions on /dev/fd0 > > persistent you need to teach devfs (via a rule) to use the desired > > permissions on each fd0 device. > > Quote from the description: > > %ls -l /dev/fd0 > > crw-r----- 1 root operator 232, 0 16 Dez 21:41 /dev/fd0 > > %tail -1 /etc/devfs.conf > > perm fd0 0660 > ^^^^^^^^^^^^^ > > Though I haven't used floppy disks in years, I still think there is a bug. No, devfs.conf does not set devfs rules, it only does a single fixup on boot. To have permissions enforced anytime a device node is created requires using a devfs rule such as via /etc/devfs.rules. See the devfs manpage for more info on how to do this. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302131610.r1DGA1fa086267>