All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles
@ 2022-03-17  3:05 Ricardo Salveti
  2022-03-17  6:53 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Salveti @ 2022-03-17  3:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: daiane.angolini

/var/run in deprecated by systemd, use /run instead, as suggested by systemd.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
---
 meta/recipes-extended/pam/libpam/pam-volatiles.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/pam/libpam/pam-volatiles.conf b/meta/recipes-extended/pam/libpam/pam-volatiles.conf
index d8b8259a93..1263feb03d 100644
--- a/meta/recipes-extended/pam/libpam/pam-volatiles.conf
+++ b/meta/recipes-extended/pam/libpam/pam-volatiles.conf
@@ -1 +1 @@
-d /var/run/sepermit 0755 root root - -
+d /run/sepermit 0755 root root - -
-- 
2.35.1



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

* Re: [OE-core] [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles
  2022-03-17  3:05 [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles Ricardo Salveti
@ 2022-03-17  6:53 ` Alexander Kanavin
  2022-03-17 13:43   ` Ricardo Salveti
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Kanavin @ 2022-03-17  6:53 UTC (permalink / raw)
  To: Ricardo Salveti; +Cc: daiane.angolini, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]

A link to back up the claim would be helpful. Also, what makes this file
and setting systemd specific?

Alex

On Thu 17. Mar 2022 at 4.05, Ricardo Salveti <ricardo@foundries.io> wrote:

> /var/run in deprecated by systemd, use /run instead, as suggested by
> systemd.
>
> Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
> ---
>  meta/recipes-extended/pam/libpam/pam-volatiles.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/pam/libpam/pam-volatiles.conf
> b/meta/recipes-extended/pam/libpam/pam-volatiles.conf
> index d8b8259a93..1263feb03d 100644
> --- a/meta/recipes-extended/pam/libpam/pam-volatiles.conf
> +++ b/meta/recipes-extended/pam/libpam/pam-volatiles.conf
> @@ -1 +1 @@
> -d /var/run/sepermit 0755 root root - -
> +d /run/sepermit 0755 root root - -
> --
> 2.35.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#163371):
> https://lists.openembedded.org/g/openembedded-core/message/163371
> Mute This Topic: https://lists.openembedded.org/mt/89838112/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 2259 bytes --]

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

* Re: [OE-core] [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles
  2022-03-17  6:53 ` [OE-core] " Alexander Kanavin
@ 2022-03-17 13:43   ` Ricardo Salveti
  2022-03-17 13:48     ` Alexander Kanavin
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Salveti @ 2022-03-17 13:43 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: daiane.angolini, openembedded-core

On Thu, Mar 17, 2022 at 3:53 AM Alexander Kanavin
<alex.kanavin@gmail.com> wrote:
>
> A link to back up the claim would be helpful. Also, what makes this file and setting systemd specific?

This file is installed under tmpfiles.d, which is only used when
systemd is enabled, which is why it is specific to it.

When using /var/run with systemd you will see the following message,
which I can add to the commit message:

systemd-tmpfiles[340]: /etc/tmpfiles.d/pam.conf:1: Line references
path below legacy directory /var/run/, updating /var/run/sepermit →
/run/sepermit; please update the tmpfiles.d/ drop-in file accordingly.

Thanks,
-- 
Ricardo Salveti


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

* Re: [OE-core] [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles
  2022-03-17 13:43   ` Ricardo Salveti
@ 2022-03-17 13:48     ` Alexander Kanavin
  0 siblings, 0 replies; 6+ messages in thread
From: Alexander Kanavin @ 2022-03-17 13:48 UTC (permalink / raw)
  To: Ricardo Salveti; +Cc: daiane.angolini, OE-core

On Thu, 17 Mar 2022 at 14:44, Ricardo Salveti <ricardo@foundries.io> wrote:

> When using /var/run with systemd you will see the following message,
> which I can add to the commit message:
>
> systemd-tmpfiles[340]: /etc/tmpfiles.d/pam.conf:1: Line references
> path below legacy directory /var/run/, updating /var/run/sepermit →
> /run/sepermit; please update the tmpfiles.d/ drop-in file accordingly.

Yes please.

Thanks,
Alex


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

* Re: [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles
  2022-08-04 11:38 Beniamin Sandu
@ 2022-08-05 11:19 ` Beniamin Sandu
  0 siblings, 0 replies; 6+ messages in thread
From: Beniamin Sandu @ 2022-08-05 11:19 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

Please disregard this change, it seems I was looking in the wrong place and
this file is not actually used with systemd.

Thanks,
Beni

On Thu, Aug 4, 2022 at 2:37 PM Beniamin Sandu <beniaminsandu@gmail.com>
wrote:

> Update the deprecated path to remove the systemd warning:
>
> /etc/tmpfiles.d/pam.conf:2: Line references path below
> legacy directory /var/run/, updating /var/run/console
> /run/console; please update the tmpfiles.d/
>
> Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
> ---
>  meta/recipes-extended/pam/libpam/99_pam | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/pam/libpam/99_pam
> b/meta/recipes-extended/pam/libpam/99_pam
> index 97e990d10b..a88247be13 100644
> --- a/meta/recipes-extended/pam/libpam/99_pam
> +++ b/meta/recipes-extended/pam/libpam/99_pam
> @@ -1 +1 @@
> -d root root 0755 /var/run/sepermit none
> +d root root 0755 /run/sepermit none
> --
> 2.25.1
>
>

[-- Attachment #2: Type: text/html, Size: 1416 bytes --]

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

* [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles
@ 2022-08-04 11:38 Beniamin Sandu
  2022-08-05 11:19 ` Beniamin Sandu
  0 siblings, 1 reply; 6+ messages in thread
From: Beniamin Sandu @ 2022-08-04 11:38 UTC (permalink / raw)
  To: openembedded-core; +Cc: Beniamin Sandu

Update the deprecated path to remove the systemd warning:

/etc/tmpfiles.d/pam.conf:2: Line references path below
legacy directory /var/run/, updating /var/run/console
/run/console; please update the tmpfiles.d/

Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
---
 meta/recipes-extended/pam/libpam/99_pam | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/pam/libpam/99_pam b/meta/recipes-extended/pam/libpam/99_pam
index 97e990d10b..a88247be13 100644
--- a/meta/recipes-extended/pam/libpam/99_pam
+++ b/meta/recipes-extended/pam/libpam/99_pam
@@ -1 +1 @@
-d root root 0755 /var/run/sepermit none
+d root root 0755 /run/sepermit none
-- 
2.25.1



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

end of thread, other threads:[~2022-08-05 11:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17  3:05 [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles Ricardo Salveti
2022-03-17  6:53 ` [OE-core] " Alexander Kanavin
2022-03-17 13:43   ` Ricardo Salveti
2022-03-17 13:48     ` Alexander Kanavin
2022-08-04 11:38 Beniamin Sandu
2022-08-05 11:19 ` Beniamin Sandu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.