From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/15072 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: utmp.h Date: Fri, 27 Dec 2019 05:53:15 -0600 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: References: Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Id1jYYKbC9TV16yTriGVvkiakxbUce30V" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="116177"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:68.0) Gecko/20100101 Thunderbird/68.0 Cc: Justin To: musl@lists.openwall.com Original-X-From: musl-return-15088-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 27 12:53:39 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1ikoBW-000U6N-E1 for gllmg-musl@m.gmane.org; Fri, 27 Dec 2019 12:53:38 +0100 Original-Received: (qmail 18331 invoked by uid 550); 27 Dec 2019 11:53:36 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18310 invoked from network); 27 Dec 2019 11:53:35 -0000 Autocrypt: addr=awilfox@adelielinux.org; prefer-encrypt=mutual; keydata= mQINBE+DjPIBEADTQ1H/e/avDUhgt8+T3TJpjGYoY9Y47EMfHqWMm9LjR9aiZSG6GWRbpjWS 4V0DqzIhNQw7HLkPws9CVqQkmpIeltQyGDV2qcR5AXxJ4lCRWHxwRzWE0cCzhLUR9BBWOO0U NINQY+2IqmzRAqXZ9zL+mGTles/qeheXmaWLKf/T0kqJFihoM+ItQvUWOkWUdVv0prhzXr9Q QUdt0NTIW8n4sPwtuSvQgqwSzCJQArh1myugVSGiIIN38pCU8g41Vh35mHHhbHjbn0o1mhrX B/gbsndGo7QQBKz4CPaSel+Fl92dCvVWTp1XYyjqeZx2xlx1zfDrXOTuzY1WmNHi7BgHYuem tG7Zyp7u9MR6FvLKgQhmvCQZXaa+9oNtwKckxoP/I5R8ede9YRb6pLyG5JC0pTTk7kpUZCX2 tm8pLKy899zomm8BBm71aEJHE44ABEl/PbM7tA7XhSPiWsdBmVCxH4bqpUgGMx0ztqhNsUul SDDhiAWgtYFHATynhmeKBDKthkO7lj4CzwI54dn1uiwDtvUFVyVsPMjJcCxFnONbOPcvm1R9 sDg5sn57dv0f+EtaU3ppZdotutjM9X7OEC93d1flO3k1LO20qn2ZcI24f3tEOLAjn5xZ1GdV 3BYBwrtuaaiO8tMdp0uAtILzkkrcr0vOi2/SngxtXFw+44X+WQARAQABtDNBLiBXaWxjb3gg KEFkw6lsaWUgTGludXgpIDxhd2lsZm94QGFkZWxpZWxpbnV4Lm9yZz6JAjoEEwEIACQCGwMF CwkIBwIGFQgJ In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:15072 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Id1jYYKbC9TV16yTriGVvkiakxbUce30V Content-Type: multipart/mixed; boundary="8GeSkMI5MWDcZIJg4XSKHSscwuqrbdA8R" --8GeSkMI5MWDcZIJg4XSKHSscwuqrbdA8R Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 26/12/2019 20:49, exitworld@tutanota.com wrote: >=20 > I believe the paths to utmp and wtmp are defined wrong in utmp.h. Right= > now they are defined in dev/null, when they should be /var/run/utmp and= > /var/log/wtmp. Please see man utmp(5) and the FHS 5.10.2 and 5.13.2 >=20 > you can respond if you'd like >=20 > thank you, > justin Hi there Justin, musl does not implement the utmp/wtmp family of functions itself[1]; it only provides stubs so that software that uses them can build (but those functions requiring utmp/wtmp will not work). For full operation with the utmp(x) functions, you will need to use something like skarnet's utmps[2], which implements these functions in a secure manner. Right now, there are only two distributions which offer utmps: Ad=C3=A9lie and NixOS. I am not sure how well-integrated utmps is= in to NixOS, but at Ad=C3=A9lie we have fully integrated it and all packages= that utilise the utmp functions work fully as intended. I hope this helps. Best, --arw [1]: https://wiki.musl-libc.org/faq.html#Q:-Why-is-the-utmp/wtmp-functionality= -only-implemented-as-stubs? (though we at Ad=C3=A9lie, obviously, disagree with the rationale) [2]: https://skarnet.org/software/utmps/ --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux https://www.adelielinux.org --8GeSkMI5MWDcZIJg4XSKHSscwuqrbdA8R-- --Id1jYYKbC9TV16yTriGVvkiakxbUce30V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAl4F8K8ACgkQyynLUZIr nRSOwQ/9HWsOY7+PE9p9SjpWX3CecLbxW5toK4onOcKDpvDysB2Cu0zLBG6eV3TW KA2+hZ4n/Lnpmpku7hCIsgSv3dklSr1K9WxlskBtxhMHcht/63VbiSaUuPzpMElk JEoVOsUKnMbl1tM2yIqK5fCmx4V5Rl3XeAZV9e5f8fM79P5Ld9KuGmjdwgtwcQDF NatNOLNkosXxQ0bxO7fvmTHRHpKS6b1TsUONUqxmku0+nofGFHaifePEaOVUQMh+ INwq9J0EcGEnhLXHXSH6rzQMKcoBPR8tVYKyCz4UwlIeCoymKrU9GKwgas6XVkQw /XwB6xQJXCTzE4ftSRJda/a1byFKbjKZaAbNQ3FEOsqbxtZ0DicCkwYYI3plbVWW lT/p0yaSUBXGoKrscSWdy4IIu7Pdj4zg8TH+ccV083aFs/+ntyw1PjwTQv+7tZ0/ O1asjIsuItRL4ozMq5l/JFek5RLumR+7Y4quwJcxB2TmnBEaQn+0cJILz/TRAi4m diREV/DQ8/MnsijieWx1Jn7eQg1ok0gVgPEB7B7ijTj3Z6keuxKU+kO529v7vH2f IUaRoE/PDprF92q4Wx3ndabBFPDIG7GAg3WxRbx3ZmAlrM2lK0pfn8v1tVYacFKk B3///9bXb/1r5n9+BTRsCcNlOqLxxnVN31CgtJ9vguqA8KxFhZI= =b64u -----END PGP SIGNATURE----- --Id1jYYKbC9TV16yTriGVvkiakxbUce30V--