From owner-freebsd-current Sat Jul 8 23:16:13 2000 Delivered-To: freebsd-current@freebsd.org Received: from gateway.posi.net (c1096725-a.smateo1.sfba.home.com [24.20.139.104]) by hub.freebsd.org (Postfix) with ESMTP id 102AF37B549 for ; Sat, 8 Jul 2000 23:15:52 -0700 (PDT) (envelope-from kbyanc@posi.net) Received: from localhost (kbyanc@localhost) by gateway.posi.net (8.9.3/8.9.3) with ESMTP id XAA29925; Sat, 8 Jul 2000 23:20:07 -0700 (PDT) (envelope-from kbyanc@posi.net) Date: Sat, 8 Jul 2000 23:20:07 -0700 (PDT) From: Kelly Yancey To: freebsd-current@freebsd.org Cc: sef@kithrup.com, davidn@blaze.net.au Subject: teaching libutil about home directories Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG PR 19755 seeks to teach nologin(8) to look for .nologin files in a user's home directory. However, I feel that such knowledge is better obtained via the nologin capability in login.conf. Basically, file and program capabilities should perform tilde expansion. Libutil already does tilde-expansion for path capabilities, although the implemention would certainly be different for files/programs. The problem is that the libutil interface does not differentiate between strings, files, and programs. User-land utilities call login_getcapstr() to get capabilitiy values for any of these types. What would be needed is a separate interface, login_getcapfile, specifically for files/programs. Unfortunately, this would then require modifying all user-land utilities to use the new interface. Is this acceptable? Is so, I'll have patches together for review shortly. Kelly -- Kelly Yancey - kbyanc@posi.net - Belmont, CA System Administrator, eGroups.com http://www.egroups.com/ Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/ Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message