mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] pam: add installation of /sbin/mkhomedir_helper
@ 2023-05-19 13:47 Tamino Bauknecht
  2023-05-24  9:30 ` Ladislav Michl
  2023-06-02  7:17 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 2 replies; 4+ messages in thread
From: Tamino Bauknecht @ 2023-05-19 13:47 UTC (permalink / raw)
  To: ptxdist; +Cc: Tamino Bauknecht

This binary is required by the PAM library pam_mkhomedir.so which is
installed to '/usr/lib/security'. If used in a PAM configuration, a
home directory will be automatically created when a user logs in.
Without this helper, the library will fail with an error.

Signed-off-by: Tamino Bauknecht <dev@tb6.eu>
---
 rules/pam.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/pam.make b/rules/pam.make
index 6e97e3320..df86c8da0 100644
--- a/rules/pam.make
+++ b/rules/pam.make
@@ -84,6 +84,8 @@ $(STATEDIR)/pam.targetinstall:
 	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/pam_env.conf)
 	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/time.conf)
 
+	@$(call install_alternative, pam, 0, 0, 0755, /sbin/mkhomedir_helper)
+
 	@$(call install_finish, pam)
 
 	@$(call touch)
-- 
2.40.1




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] pam: add installation of /sbin/mkhomedir_helper
  2023-05-19 13:47 [ptxdist] [PATCH] pam: add installation of /sbin/mkhomedir_helper Tamino Bauknecht
@ 2023-05-24  9:30 ` Ladislav Michl
  2023-05-25 15:48   ` Tamino Bauknecht
  2023-06-02  7:17 ` [ptxdist] [APPLIED] " Michael Olbrich
  1 sibling, 1 reply; 4+ messages in thread
From: Ladislav Michl @ 2023-05-24  9:30 UTC (permalink / raw)
  To: ptxdist; +Cc: Tamino Bauknecht

Hi Tamino,

On Fri, May 19, 2023 at 03:47:10PM +0200, Tamino Bauknecht wrote:
> This binary is required by the PAM library pam_mkhomedir.so which is
> installed to '/usr/lib/security'. If used in a PAM configuration, a
> home directory will be automatically created when a user logs in.
> Without this helper, the library will fail with an error.

could you provide more informations about your use case? As PTXdist
is not normally used to build "user friendly" distribution, there
are no users logging in...

	ladis

> Signed-off-by: Tamino Bauknecht <dev@tb6.eu>
> ---
>  rules/pam.make | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/rules/pam.make b/rules/pam.make
> index 6e97e3320..df86c8da0 100644
> --- a/rules/pam.make
> +++ b/rules/pam.make
> @@ -84,6 +84,8 @@ $(STATEDIR)/pam.targetinstall:
>  	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/pam_env.conf)
>  	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/time.conf)
>  
> +	@$(call install_alternative, pam, 0, 0, 0755, /sbin/mkhomedir_helper)
> +
>  	@$(call install_finish, pam)
>  
>  	@$(call touch)
> -- 
> 2.40.1
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] pam: add installation of /sbin/mkhomedir_helper
  2023-05-24  9:30 ` Ladislav Michl
@ 2023-05-25 15:48   ` Tamino Bauknecht
  0 siblings, 0 replies; 4+ messages in thread
From: Tamino Bauknecht @ 2023-05-25 15:48 UTC (permalink / raw)
  To: ptxdist

Hi Ladis,

independent of my use case, I considered this to be a bug because the
library pam_mkhomedir.so is installed on the target but doesn't work
without this addition.

The use case is that when providing an LDAP login via PAM to SSH (for
target maintenance with a central credential management), it can be
convenient to have auto-created home directories for new users. Although
I guess this is not quite the standard use of ptxdist, I think that it
can be misleading to have non-working libraries installed on the device
(especially because a misconfiguration in PAM can lead to trouble with
accessing the target). Since the binary is quite small (~20kB), the 
inclusion
might be worth it even though it won't be required by the majority of users.

On 5/24/23 11:30, Ladislav Michl wrote:
> Hi Tamino,
>
> On Fri, May 19, 2023 at 03:47:10PM +0200, Tamino Bauknecht wrote:
>> This binary is required by the PAM library pam_mkhomedir.so which is
>> installed to '/usr/lib/security'. If used in a PAM configuration, a
>> home directory will be automatically created when a user logs in.
>> Without this helper, the library will fail with an error.
> could you provide more informations about your use case? As PTXdist
> is not normally used to build "user friendly" distribution, there
> are no users logging in...
>
> 	ladis
>
>> Signed-off-by: Tamino Bauknecht<dev@tb6.eu>
>> ---
>>   rules/pam.make | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/rules/pam.make b/rules/pam.make
>> index 6e97e3320..df86c8da0 100644
>> --- a/rules/pam.make
>> +++ b/rules/pam.make
>> @@ -84,6 +84,8 @@ $(STATEDIR)/pam.targetinstall:
>>   	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/pam_env.conf)
>>   	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/time.conf)
>>   
>> +	@$(call install_alternative, pam, 0, 0, 0755, /sbin/mkhomedir_helper)
>> +
>>   	@$(call install_finish, pam)
>>   
>>   	@$(call touch)
>> -- 
>> 2.40.1
>>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [APPLIED] pam: add installation of /sbin/mkhomedir_helper
  2023-05-19 13:47 [ptxdist] [PATCH] pam: add installation of /sbin/mkhomedir_helper Tamino Bauknecht
  2023-05-24  9:30 ` Ladislav Michl
@ 2023-06-02  7:17 ` Michael Olbrich
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2023-06-02  7:17 UTC (permalink / raw)
  To: ptxdist; +Cc: Tamino Bauknecht

Thanks, applied as 9a34285a727ce52af68995d4c04eed84541c86c2.

Michael

[sent from post-receive hook]

On Fri, 02 Jun 2023 09:17:45 +0200, Tamino Bauknecht <dev@tb6.eu> wrote:
> This binary is required by the PAM library pam_mkhomedir.so which is
> installed to '/usr/lib/security'. If used in a PAM configuration, a
> home directory will be automatically created when a user logs in.
> Without this helper, the library will fail with an error.
> 
> Signed-off-by: Tamino Bauknecht <dev@tb6.eu>
> Message-Id: <20230519134710.9618-1-dev@tb6.eu>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/pam.make b/rules/pam.make
> index 6e97e33200eb..df86c8da0bc0 100644
> --- a/rules/pam.make
> +++ b/rules/pam.make
> @@ -84,6 +84,8 @@ $(STATEDIR)/pam.targetinstall:
>  	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/pam_env.conf)
>  	@$(call install_alternative, pam, 0, 0, 0644, /etc/security/time.conf)
>  
> +	@$(call install_alternative, pam, 0, 0, 0755, /sbin/mkhomedir_helper)
> +
>  	@$(call install_finish, pam)
>  
>  	@$(call touch)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-02  7:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-19 13:47 [ptxdist] [PATCH] pam: add installation of /sbin/mkhomedir_helper Tamino Bauknecht
2023-05-24  9:30 ` Ladislav Michl
2023-05-25 15:48   ` Tamino Bauknecht
2023-06-02  7:17 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox