Skip to contentSkip to conversation

libpam: use /run instead of /var/run in systemd tmpfiles

PATCH Superseded Ricardo Salveti 2 participants 4 messages Mar 17, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libpam: use /run instead of /var/run in systemd tmpfiles

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

---
 meta/recipes-extended/pam/libpam/pam-volatiles.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/pam/libpam/pam-volatiles.conf +1 -1
index d8b8259a93..1263feb03d 100644
@@ -1 +1 @@
-d /var/run/sepermit 0755 root root - -
+d /run/sepermit 0755 root root - -
Signature · 1 line
2.35.1
#1 lore raw

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

Alex

Quoted 31 lines · Ricardo Salveti

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

---
 meta/recipes-extended/pam/libpam/pam-volatiles.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/pam/libpam/pam-volatiles.conf +1 -2
index d8b8259a93..1263feb03d 100644
@@ -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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 2 lines · Alexander Kanavin

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,

Signature · 1 line
Ricardo Salveti
#3 lore raw
Quoted 6 lines · Ricardo Salveti

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