Re: /lib/passwd



Colin Walters <walters verbum org> writes:

> On Sun, 2012-08-26 at 13:48 +0300, Adrian Perez de Castro wrote:
>
>> The idea would be to have a copy of the libnss_files sources, modify
>> the paths to make it read from /lib/{passwd,group,shadow,gshadow}
>> (instead of /etc), and call the built llibrary something like
>> libnss_altfiles.so.2; and finally make nsswitch.conf have [...]
>
> I'm fine with trying that if you want to do a patch.

For the moment, I have the NSS module working, code at Github:
  https://github.com/aperezdc/nss-altfiles

I'm working now in adding it to the Yocto bootstrap.

> Side note: It took me way, way too long to debug that I needed to change
> "compat" to "files" to get my code to run at all.  When in doubt, add
> printfs early on to make sure you're running the code you think you're
> running...

I have been (manually) testing the module yesterday. It seems to work as
intended =)

Regards,

-- 
Adrian Perez <aperez igalia com> - Sent from my toaster
Igalia - Free Software Engineering

Attachment: pgpdmdMuNYSXB.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]