On Thu, 6 Sep 2001, Poul-Henning Kamp wrote:
> In message <[EMAIL PROTECTED]>, Bruce Evans writes:
> >This was decreed but not agreed to. I don't use devfs and don't plan
> >to use it until it works at least as well as specfs (if this is
> >possible). I have noticed about 10 minor bugs in it despite only running
> >it to test it every 6 months or so. Examples:
> Why don't you report such findings then ?
As you know, I don't believe in devfs :-).
> >- file time updates are broken in several ways.
> Details ?
I actually did report a few of these to you in private mail. The main ones
- updates done by getnanotime(), so they always have low resolution and are
incoherent with time(1). Fix: use vfs_timestamp().
- missing access checking for VA_UTIMES_NULL. Fix: clone ufs_setattr()
- missing atime updates for readdir().
> >- stat() doesn't work right on devfs directories (st_size and st_blocks
> > zero for all devfs files, but should be nonzero for directories).
> Where is this requirement from ?
POLA. It's strange and less than useful for utilities like ls(1) to show
a zero size for directories... (st_size is unspecified for directories in
> >- acd devices still have insecure modes (world readable).
> That is not a fault in DEVFS but in the driver.
There are some more strange modes, although maybe no more security-related
ones, including some in devfs itself:
RCS file: /home/ncvs/src/sys/fs/devfs/devfs_devs.c,v
retrieving revision 1.15
diff -u -2 -r1.15 devfs_devs.c
--- devfs_devs.c 26 May 2001 08:27:52 -0000 1.15
+++ devfs_devs.c 13 Aug 2001 07:43:23 -0000
@@ -222,5 +223,5 @@
dd->de_dirent->d_type = DT_DIR;
- dd->de_mode = 0755;
+ dd->de_mode = 0555;
dd->de_links = 2;
dd->de_dir = dd;
@@ -338,5 +339,5 @@
de->de_uid = 0;
de->de_gid = 0;
- de->de_mode = 0666;
+ de->de_mode = 0755;
de->de_dirent->d_type = DT_LNK;
pdev = dev->si_parent;
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message