public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cosmic-greeter] f45: Fix PAM configuration by maintaining PAM config as a source
@ 2026-10-15  0:13 Neal Gompa
  0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-10-15  0:13 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/cosmic-greeter
Branch : f45
Commit : f82eb928f35bff9417812df1915345691a4d9329
Author : Neal Gompa <ngompa@fedoraproject.org>
Date   : 2026-10-14T20:11:57-04:00
Stats  : +29/-33 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/cosmic-greeter/c/f82eb928f35bff9417812df1915345691a4d9329?branch=f45

Log:
Fix PAM configuration by maintaining PAM config as a source

---
diff --git a/cosmic-greeter.pam b/cosmic-greeter.pam
new file mode 100644
index 0000000..9746f03
--- /dev/null
+++ b/cosmic-greeter.pam
@@ -0,0 +1,25 @@
+#%PAM-1.0
+auth       substack    system-auth
+-auth       optional    pam_gnome_keyring.so
+-auth       optional    pam_kwallet5.so
+-auth       optional    pam_kwallet.so
+-auth       optional    pam_oo7.so
+auth       include     postlogin
+
+account    required    pam_sepermit.so
+account    required    pam_nologin.so
+account    include     system-auth
+
+password   include     system-auth
+
+session    required    pam_selinux.so close
+session    required    pam_loginuid.so
+session    required    pam_selinux.so open
+session    optional    pam_keyinit.so force revoke
+session    required    pam_namespace.so
+session    include     system-auth
+-session    optional    pam_gnome_keyring.so auto_start
+-session    optional    pam_kwallet5.so auto_start
+-session    optional    pam_kwallet.so auto_start
+-session    optional    pam_oo7.so auto_start
+session    include     postlogin

diff --git a/cosmic-greeter.spec b/cosmic-greeter.spec
index 9b4f0fb..487aab2 100644
--- a/cosmic-greeter.spec
+++ b/cosmic-greeter.spec
@@ -30,8 +30,10 @@ Source1:        vendor-%{version_no_tilde}.tar.gz
 # * mv vendor-config-%%{version_no_tilde}.toml ..
 Source2:        vendor-config-%{version_no_tilde}.toml
 
+# pam configuration for cosmic-greeter
+Source10:       %{name}.pam
+
 Patch:          0001-Make-service-a-display-manager.patch
-Patch:          include-greetd.patch
 
 BuildRequires:  cargo-rpm-macros >= 25
 BuildRequires:  rustc
@@ -89,7 +91,7 @@ just rootdir=%{buildroot} prefix=%{_prefix} install
 install -Dm0644 cosmic-greeter.toml %{buildroot}/%{_sysconfdir}/greetd/cosmic-greeter.toml
 install -Dm0644 debian/cosmic-greeter.service %{buildroot}/%{_unitdir}/cosmic-greeter.service
 install -Dm0644 debian/cosmic-greeter-daemon.service %{buildroot}/%{_unitdir}/cosmic-greeter-daemon.service
-install -Dm0644 debian/greetd.pam %{buildroot}/%{_prefix}/lib/pam.d/cosmic-greeter
+install -Dm0644 %{S:10} %{buildroot}/%{_prefix}/lib/pam.d/cosmic-greeter
 
 # TODO: In greetd patch, make sure gnome-keyring is unlocked
 

diff --git a/include-greetd.patch b/include-greetd.patch
deleted file mode 100644
index d673d2a..0000000
--- a/include-greetd.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff --git a/debian/greetd.pam b/debian/greetd.pam
-new file mode 100644
-index 0000000..52df2fe
---- /dev/null
-+++ b/debian/greetd.pam
-@@ -0,0 +1,23 @@
-+#%PAM-1.0
-+auth       substack    system-auth
-+-auth       optional    pam_gnome_keyring.so
-+-auth       optional    pam_kwallet5.so
-+-auth       optional    pam_kwallet.so
-+-auth       optional    pam_oo7.so
-+auth       include     postlogin
-+
-+account    required    pam_sepermit.so
-+account    required    pam_nologin.so
-+account    include     system-auth
-+
-+password   include     system-auth
-+
-+session    required    pam_selinux.so close
-+session    required    pam_loginuid.so
-+session    required    pam_selinux.so open
-+session    optional    pam_keyinit.so force revoke
-+session    required    pam_namespace.so
-+session    include     system-auth
-+-session    optional    pam_gnome_keyring.so auto_start
-+-session    optional    pam_kwallet5.so auto_start
-+-session    optional    pam_kwallet.so auto_start
-+-session    optional    pam_oo7.so auto_start
-+session    include     postlogin

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-15  0:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15  0:13 [rpms/cosmic-greeter] f45: Fix PAM configuration by maintaining PAM config as a source Neal Gompa

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