From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2854 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: shadow.h Date: Tue, 26 Feb 2013 18:35:42 -0500 Message-ID: <20130226233542.GG20323@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1361921752 5213 80.91.229.3 (26 Feb 2013 23:35:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2013 23:35:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2855-gllmg-musl=m.gmane.org@lists.openwall.com Wed Feb 27 00:36:16 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UAU4F-0008Mn-N8 for gllmg-musl@plane.gmane.org; Wed, 27 Feb 2013 00:36:15 +0100 Original-Received: (qmail 9791 invoked by uid 550); 26 Feb 2013 23:35:54 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 9780 invoked from network); 26 Feb 2013 23:35:54 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2854 Archived-At: On Tue, Feb 26, 2013 at 11:54:58PM +0100, Daniel Cegiełka wrote: > Hi, > It seems that the musl doesn't contain several important shadow's > functions that are declared in the shadow.h. > > # ldd /lib/security/pam_unix.so > libpam.so => /lib/libpam.so (0x7fcac91b8000) > Error relocating /lib/security/pam_unix.so: putspent: symbol not found > Error relocating /lib/security/pam_unix.so: fgetspent: symbol not found > Error relocating /lib/security/pam_unix.so: putpwent: symbol not found These have been discussed before and I believe the intent is to add them (they're simple fprintf wrappers, if I remember correctly), but be aware that pam_unix.so's support for writing to the password database assumes a certain form and will break things badly if the user is using tcb shadow. It might also mess up the shadow file if it depends on being able to iterate all entries in the shadow file; I'm not sure if that works or not. These are issues that need more discussion... Rich