On Fri, 10 Jan 2003, Attila Nagy wrote: > Is there a recommended way to configure multiple devfs rules (massive jail > usage) in a standard manner? I don't see any traces of it. > Or is it up to the user how does he manage this question, for example a > shell script with the rules?
If you are using devfs in jail, then following patch to current (by Dima Dorfman <[EMAIL PROTECTED]>) is extremely useful. Allows tules to work on symlinks (for example /dev/urandom is symlink and ssh works better if it is present). best regards, taavi Index: devfs_rule.c =================================================================== RCS file: /a/ncvs/src/sys/fs/devfs/devfs_rule.c,v retrieving revision 1.3 diff -u -r1.3 devfs_rule.c --- devfs_rule.c 8 Oct 2002 04:21:54 -0000 1.3 +++ devfs_rule.c 2 Dec 2002 21:20:04 -0000 @@ -634,7 +634,8 @@ dev = devfs_rule_getdev(de); if (dev != NULL) pname = dev->si_name; - /* XXX: Support symlinks (check d_type == DT_LNK here). */ + else if (de->de_dirent->d_type == DT_LNK) + pname = de->de_dirent->d_name; else return (0); KASSERT(pname != NULL, ("devfs_rule_matchpath: NULL pname")); To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message