<div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 6, 2024 at 11:48 PM Chris Hofstaedtler <<a href="mailto:zeha@debian.org">zeha@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
* Iker Pedrosa <<a href="mailto:ipedrosa@redhat.com" target="_blank">ipedrosa@redhat.com</a>> [240403 09:43]:<br>
> Hi Chris,<br>
> <br>
> I have some questions regarding your proposal:<br>
> <br>
> - What is the difference between liblastlog2 and libpam-lastlog2<br>
> binaries? Upstream util-linux only provides one binary (lastlog2) so this<br>
> confuses me.<br>
<br>
util-linux upstream provides three binary objects to be built:<br>
- liblastlog2.so<br>
- pam_lastlog2.so<br>
- lastlog2 (program)<br>
<br>
Debian's PAM policy says to put PAM modules into their own package,<br>
thus libpam-lastlog2. liblastlog2.so would go into the <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
liblastlog2(-0) package. The lastlog2 program either into its own<br>
lastlog2 package, or elsewhere.<br></blockquote><div><br></div><div>Please, let's call this pam_lastlog2 and not libpam-lastlog2. AFAIK, all pam modules start with the prefix pam_*.</div><div><br></div><div>Everything else sounds good.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> - Did you consider using a systemd service to upgrade from lastlog to<br>
> lastlog2 data?<br>
<br>
No, I did not consider this, as I wasn't aware of any<br>
implementations for this. Does u-l upstream ship such a service?<br></blockquote><div><br></div><div>Yes, <a href="https://github.com/util-linux/util-linux/blob/master/misc-utils/lastlog2-import.service.in">https://github.com/util-linux/util-linux/blob/master/misc-utils/lastlog2-import.service.in</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> This way when the distribution is updated to the next<br>
> version you can also remove the lastlog binary and all its dependencies. In<br>
> addition, you can use "--disable-lastlog" in shadow to stop building this<br>
> binary.<br>
<br>
Chris<br>
<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>
<p style="font-weight:bold;margin:0px;padding:0px;font-size:14px;font-family:"RedHatText",sans-serif">
<span>Iker</span> <span>Pedrosa</span><span style="color:rgb(170,170,170);margin:0px"></span>
</p>
<p style="font-weight:normal;font-size:12px;margin:0px;font-family:"RedHatText",sans-serif">
<span>Senior Software Engineer, Identity Management team</span>
</p>
<p style="font-weight:normal;margin:0px 0px 4px;font-size:12px;font-family:"RedHatText",sans-serif">
<a style="color:rgb(0,136,206);font-size:12px;margin:0px;text-decoration:none;font-family:"RedHatText",sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span></span></a>
</p>
<div style="margin-bottom:4px">
<span>
<p style="font-size:12px;margin:0px;font-family:"RedHatText",sans-serif">Txapela (gorria) buruan eta ibili munduan</p>
</span>
<span>
<p style="font-size:12px;margin:0px;font-family:"RedHatText",sans-serif">(Red) hat on his head and walk the world</p>
</span>
</div>
<p style="font-weight:normal;margin:0px;font-size:12px;font-family:"RedHatText",sans-serif">
<span style="margin:0px;padding:0px"><a style="color:rgb(0,0,0);font-size:12px;margin:0px;text-decoration:none;font-family:"RedHatText",sans-serif" href="mailto:Basque+proverb" target="_blank">Basque proverb</a> </span>
</p>
<div style="margin-top:12px">
<table border="0">
<tbody><tr>
<td width="100px"><a href="https://www.redhat.com" target="_blank"> <img src="https://static.redhat.com/libs/redhat/brand-assets/2/corp/logo--200.png" width="90" height="auto"></a> </td>
</tr>
</tbody></table>
</div>
</div></div></div></div>