Date: Sat, 11 Jan 2003 00:08:00 +0200 (EET) From: Taavi Talvik <taavi@uninet.ee> To: Attila Nagy <bra@fsn.hu> Cc: current@freebsd.org Subject: Re: devfs configuration Message-ID: <20030111000320.R49867-100000@valu.uninet.ee> In-Reply-To: <Pine.LNX.4.50.0301101900470.510-100000@scribble.fsn.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <dima@trit.org>) 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030111000320.R49867-100000>
