Thanks. I looked into libblkid and it seems simple enough. I can include it as
a new authentication method.
Still the systemd dependency might not be as bad as I thought
initially. It turns out that the devices in by-uuid are created by
udev. It is a fact that udev is part of systemd, but there are
alternatives. There is Eudev, that seems to provide a similar support
but is free of systemd. I was not able to test this, I do not have
Gentoo. I do have FreeBSD, which does not have systemd, as far as I
understand. There the component is devd and it does provide the
necessary functionality.
Since I had to test it in FreeBSD I added the code to repository,
version 0.2.0-alpha. I also updated the README with all this
information about udev/ eudev and devd.
On 29/04/2020, Tait Hoyem <tait_AT_tait.tech> wrote:
> Instead of looking for a specific file via the file system which would
> "depend" on systemd in as much as systemd provides the /dev/by-uuid/
> directory (AFAIR anyway), maybe look into the blkid.h file included in
> linux-utils.
> libblkid(3), blkid(8) are some good man pages to start out with.
> I haven't used blkid.h myself, but given what the blkid command does I think
> it's fair to say its library may be fruitful for your purposes.
>
> Sure, it's not cross-platform to BSDs and such, but it'll at least get you
> out of the systemd requirement :)
>
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Wednesday, April 29, 2020 7:02 PM, lmsrusso_AT_gmail.com
> <lmsrusso_AT_gmail.com> wrote:
>
>> Hi,
>>
>> I have just developed a PAM module that can be used to log into linux
>> by using a usb drive. The software was designed according to the
>> suckless philosophy of simplicity, clarity and frugality. However it
>> does depend on systemd, so any suggestion on how to achieve the same
>> functionality without this dependency is welcome.
>>
>> The code is hosted at GitHub
>>
>> https://github.com/LuisRusso/PamUUID
>>
>> Besides announcing the software to the community I would like to
>> request that it be added in the "other projects" list of the suckless
>> webpage.
>>
>> Best regards,
>>
>> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> Luís M. S. Russo
Received on Mon May 04 2020 - 00:37:51 CEST