From owner-freebsd-current Fri Jan 10 14: 8:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E854937B401 for ; Fri, 10 Jan 2003 14:08:09 -0800 (PST) Received: from valu.uninet.ee (valu.uninet.ee [194.204.34.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DF0F43ED8 for ; Fri, 10 Jan 2003 14:08:09 -0800 (PST) (envelope-from taavi@uninet.ee) Received: by valu.uninet.ee (Postfix, from userid 1002) id 2CB4836420; Sat, 11 Jan 2003 00:08:00 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by valu.uninet.ee (Postfix) with ESMTP id DFA1B3261A; Sat, 11 Jan 2003 00:08:00 +0200 (EET) Date: Sat, 11 Jan 2003 00:08:00 +0200 (EET) From: Taavi Talvik To: Attila Nagy Cc: current@freebsd.org Subject: Re: devfs configuration In-Reply-To: Message-ID: <20030111000320.R49867-100000@valu.uninet.ee> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 ) 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