public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Neal Gompa <ngompa@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/cosmic-greeter] f45: Fix PAM configuration by maintaining PAM config as a source
Date: Thu, 15 Oct 2026 00:13:42 GMT	[thread overview]
Message-ID: <179202322271.1.7698673460446883498.rpms-cosmic-greeter-f82eb928f35b@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-15  0:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179202322271.1.7698673460446883498.rpms-cosmic-greeter-f82eb928f35b@fedoraproject.org \
    --to=ngompa@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox