[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] user-information update for OpenBSD
From: |
Timo Myyrä |
Subject: |
Re: [Chicken-hackers] user-information update for OpenBSD |
Date: |
Tue, 19 Jul 2016 12:09:56 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) |
Christian Kellermann <address@hidden> writes:
> * Timo Myyrä <address@hidden> [160719 09:20]:
>
>> Hi,
>>
>> OpenBSD-current was changed so that shadow database isn't opened by default
>> anymore:
>> http://article.gmane.org/gmane.os.openbsd.cvs/155646
>>
>> This affects calls to getpwnam and getpwuid functions which chicken uses for
>> the
>> user-information procedure.
>>
>> I see two ways to fix this:
>>
>> 1) add defined(__OpenBSD__) checks to posixunix.scm to call the shadow
>> versions of
>> these functions if the encrypted password is really needed.
>>
>> or
>>
>> 2) add note to user-information that the OpenBSD doesn't provide the
>> encrypted
>> password and check if any eggs depend on having the password.
>
> Maybe it makes sense to split out the sensitive information from the
> user-information for all Operating systems and thinking of another set
> of procedures that will produce the credentials. These can then use OS
> specific functions to get at the information.
>
> What do you think?
>
> Christian
>
> --
> May you be peaceful, may you live in safety, may you be free from
> suffering, and may you live with ease.
I think that would be more sensible approach. user-information would return info
from /etc/passwd and then another procedure to get the encrypted password.
That would probably happen for 5.0?
Timo
--
Shut up and hack!