feat(pkg): ship baseline pam-configs profile (Default: no, pending-flag only)

This commit is contained in:
michael
2026-04-27 13:34:17 -07:00
parent 129024829b
commit ea75c03f55
2 changed files with 17 additions and 0 deletions

13
debian/authforge.pam-config vendored Normal file
View File

@@ -0,0 +1,13 @@
Name: AuthForge first-login backstop
Default: no
Priority: 256
Auth-Type: Primary
Auth:
[success=ok default=die] pam_authforge_pending.so
Auth-Initial:
[success=ok default=die] pam_authforge_pending.so
Account-Type: Primary
Account:
sufficient pam_unix.so
Account-Initial:
sufficient pam_unix.so

4
debian/rules vendored
View File

@@ -30,6 +30,10 @@ override_dh_auto_install:
debian/authforge-gui/etc/xdg/autostart/authforge-firstrun.desktop debian/authforge-gui/etc/xdg/autostart/authforge-firstrun.desktop
# PAM # PAM
$(MAKE) -C pam install DESTDIR=$(CURDIR)/debian/authforge-pam $(MAKE) -C pam install DESTDIR=$(CURDIR)/debian/authforge-pam
# Baseline pam-configs profile for pam-auth-update; daemon overwrites
# /usr/share/pam-configs/authforge at runtime when a real policy lands.
install -D -m 0644 debian/authforge.pam-config \
debian/authforge-pam/usr/share/pam-configs/authforge
# D-Bus activation file # D-Bus activation file
install -D -m 0644 debian/io.dangerousthings.AuthForge.service \ install -D -m 0644 debian/io.dangerousthings.AuthForge.service \
debian/authforge-daemon/usr/share/dbus-1/system-services/io.dangerousthings.AuthForge.service debian/authforge-daemon/usr/share/dbus-1/system-services/io.dangerousthings.AuthForge.service