delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/14/10:46:52

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Message-ID: <00ab01c13d2c$2c1f03d0$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "cygdev" <cygwin-developers AT cygwin DOT com>
References: <EA18B9FA0FE4194AA2B4CDB91F73C0EF08F177 AT itdomain002 DOT itdomain DOT net DOT au> <s1su1y6qlam DOT fsf AT jaist DOT ac DOT jp> <s1sd74uufha DOT fsf AT jaist DOT ac DOT jp> <20010914150107 DOT E25339 AT cygbert DOT vinschen DOT de>
Subject: Re: Proposal: check and read /etc/{passwd,group} less frequently.
Date: Sat, 15 Sep 2001 00:47:26 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 14 Sep 2001 14:34:12.0652 (UTC) FILETIME=[529546C0:01C13D2A]

----- Original Message -----
From: "Corinna Vinschen" <vinschen AT redhat DOT com>
To: <cygwin-developers AT cygwin DOT com>
Sent: Friday, September 14, 2001 11:01 PM
Subject: Re: Proposal: check and read /etc/{passwd,group} less
frequently.


> On Fri, Sep 14, 2001 at 09:25:05PM +0900, Kazuhiro Fujieda wrote:
> > >>> On 14 Sep 2001 16:33:05 +0900
> > >>> Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp> said:
> >
> > > > How often is internal_getlogin called relative to get(p|g)w*?
> > >
> > > It is in set{g,u}id and uinfo_init. At the user's point of view,
> > > the cache is updated only when they execute another command.
> >
> > Oops, I've told a lie. it's a nonsense that internal_getlogin
> > invokes read_etc{passwd,group}. I tested it and found it
> > couldn't work as I intended.
> >
> > I'd like to change the proposal. Checking and reading
> > /etc/{passwd,group} should be held in uinfo_init.
>
> What about a long running server process e.g. started from cygrunsrv?
> It runs uinfo_init() just once at the beginning.  It would never get
> the changes to /etc/passwd and /etc/group since it needs that info
> _before_ changing the user context (which would call
internal_getlogin()
> directly from seteuid(), btw. -- no uinfo_init() at all).

That sounds like another candidate for the daemon?

Rob

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019