Commit Graph

403 Commits

Author SHA1 Message Date
Iker Pedrosa
767d329677 spec: Remove --enable-vendordir from configuration
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2023-05-26 11:32:58 +02:00
Iker Pedrosa
7a4a2dff79 spec: Update build requirements for documentation (docbook5)
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2023-05-26 11:31:54 +02:00
Björn Esser
0cfcd0d503
Realign left-over patches
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2023-05-19 22:59:26 +02:00
Björn Esser
4a01b974a1
Drop pam-1.5.2-pwhistory-config.patch and pam-1.5.2-configure-c99.patch,
as those patches are implemented upstream

Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2023-05-19 22:48:35 +02:00
Björn Esser
67d3ea2e03
Rebase to release 1.5.3
Resolves: #2196709

Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2023-05-19 22:45:30 +02:00
Björn Esser
0dbd0156df
Replace deprecated '%%patchN' with '%%patch -P N' 2023-04-25 17:38:43 +02:00
Arjun Shankar
bfff0f23a8 Port configure script to C99
Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2023-04-25 16:57:09 +02:00
Iker Pedrosa
c66885bc84 - Remove pam_console (#2166692)
- Rebase to pam-redhat-1.2.0
- Remove reference to /var/run/console in spec (#1666627)

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2023-03-06 09:30:15 +01:00
Fedora Release Engineering
5183d62a98 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 23:16:54 +00:00
Iker Pedrosa
ebfe08c05e SPDX license migration
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2022-12-19 13:25:54 +01:00
Fedora Release Engineering
a1608ecf6f Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 02:34:49 +00:00
Iker Pedrosa
715212ba98 pam_pwhistory: load config from file
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2022-07-18 11:58:55 +02:00
Zbigniew Jędrzejewski-Szmek
bb75480a15 Add Conflicts for pam version before the split
I had an upgrade failure where pam itself was blocked:
 Problem: cannot install both libnsl2-2.0.0-3.fc36.x86_64 and libnsl2-1.3.0-4.fc35.x86_64
  - package pam-1.5.2-11.fc36.x86_64 requires libnsl.so.3()(64bit), but none of the providers can be installed
  - package pam-1.5.2-11.fc36.x86_64 requires libnsl.so.3(LIBNSL_2.0)(64bit), but none of the providers can be installed
  - package python26-2.6.9-21.fc31.x86_64 requires libnsl.so.2()(64bit), but none of the providers can be installed
  - package python26-2.6.9-21.fc31.x86_64 requires libnsl.so.2(LIBNSL_1.0)(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package pam-1.5.2-7.fc35.x86_64
  - problem with installed package python26-2.6.9-21.fc31.x86_64

So dnf would try to just install pam-libs, and that failed in the transaction
test after downloading all the packages. Let's try to fail early in such a case.

With the Conflicts:
 Problem 1: cannot install both libnsl2-2.0.0-3.fc36.x86_64 and libnsl2-1.3.0-4.fc35.x86_64
  - package pam-1.5.2-12.fc36.x86_64 requires libnsl.so.3()(64bit), but none of the providers can be installed
  - package pam-1.5.2-12.fc36.x86_64 requires libnsl.so.3(LIBNSL_2.0)(64bit), but none of the providers can be installed
  - package python26-2.6.9-21.fc31.x86_64 requires libnsl.so.2()(64bit), but none of the providers can be installed
  - package python26-2.6.9-21.fc31.x86_64 requires libnsl.so.2(LIBNSL_1.0)(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package pam-1.5.2-7.fc35.x86_64
  - problem with installed package python26-2.6.9-21.fc31.x86_64
 Problem 2: problem with installed package pam-devel-1.5.2-7.fc35.i686
  - pam-devel-1.5.2-7.fc35.i686 has inferior architecture
  - pam-devel-1.5.2-11.fc36.i686 has inferior architecture
  - cannot install both pam-devel-1.5.2-12.fc36.x86_64 and pam-devel-1.5.2-7.fc35.x86_64
  - cannot install both pam-devel-1.5.2-12.fc36.x86_64 and pam-devel-1.5.2-11.fc36.x86_64
  - cannot install the best update candidate for package pam-devel-1.5.2-7.fc35.x86_64
===========================================================================================
 Package             Architecture     Version                 Repository              Size
===========================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 libnsl2             x86_64           2.0.0-3.fc36            fedora                  30 k
 pam-devel           x86_64           1.5.2-11.fc36           fedora                  97 k
 pam-devel           x86_64           1.5.2-12.fc36           @commandline            97 k
Skipping packages with broken dependencies:
 pam                 x86_64           1.5.2-12.fc36           @commandline           519 k
2022-02-27 17:00:55 +01:00
Björn Esser
f769973015
Split shared libraries into pam-libs package (#2055572)
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2022-02-17 20:24:27 +01:00
Fedora Release Engineering
44b60c5643 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 22:47:35 +00:00
Ondrej Mosnacek
95e7fc0739 Remove conflicting ownership of motd.d directories
They are owned by the `setup` package [1], which `pam` requires, so
owning these directories by `pam` is wrong and unnecessary.

Also remove the /run/motd.d line from pamtmp.conf, which is also already
present in the `setup` package's tmpfiles config file.

Should fix warnings like this during package updates:
```
  Running scriptlet: libsepol-3.3-2.fc35.x86_64                                                  16/16
/usr/lib/tmpfiles.d/pam.conf:4: Duplicate line for path "/run/motd.d", ignoring.
/usr/lib/tmpfiles.d/setup.conf:2: Duplicate line for path "/run/motd.d", ignoring.
```

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2022-01-11 13:20:37 +01:00
Pavel Březina
743dc9ca3b spec: remove fprintd snippet
Related to: https://fedoraproject.org/wiki/Changes/Make_Authselect_Mandatory

This snippet is no longer required:
1) Users are supposed to upgrade to F35 first which will fix the file
2) Users are now expected to use authselect for configuration
2021-12-06 15:12:17 +01:00
Pavel Březina
ff21ecd192 spec: require authselect
Related to: https://fedoraproject.org/wiki/Changes/Make_Authselect_Mandatory

system-auth, smartcard-auth, fingerprint-auth, password-auth and
postlogin are now owned by authselect. Authselect is now a hard
dependency for pam. Users are now expected to use authselect to
configure the system and packages should no longer support
non-authselect configurations.

Resolves: rhbz#2023738
2021-12-06 15:12:17 +01:00
Björn Esser
52766bc401
Rebuild(libnsl2)
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-11-12 22:01:51 +01:00
Björn Esser
c3ee4c26f3
Constantly use spaces for indentation
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-10-07 13:54:56 +02:00
Björn Esser
4886bd212f
Move documentation to %{_pkgdocdir}
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-10-07 13:54:55 +02:00
Björn Esser
b3e1d168dd
Replace $RPM_BUILD_ROOT with %{buildroot}
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-10-07 13:54:55 +02:00
Björn Esser
4d6342409b
Rename docs sub-package to doc
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-10-07 13:54:55 +02:00
Björn Esser
ca98dae9da
Remove old cruft from spec file
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-10-07 13:54:54 +02:00
Björn Esser
0012d59db0
Remove trailing white-spaces from spec file
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-10-01 06:18:18 +02:00
Björn Esser
9f38c534db
Conditionalize BR: openssl >= 3.0.0 to supported distributions
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-23 11:54:37 +02:00
Björn Esser
64abd3f105
Drop explicit dependency on openssl, as auto-deps will pull it in
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-23 11:54:35 +02:00
Björn Esser
75bbb9a525
Rebase to pam-redhat-1.1.5
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-23 11:39:42 +02:00
Iker Pedrosa
b025ee55c1 - Remove the /etc/motd.d directory to exclude its ownership from pam (#1968131)
- pam_timestamp: enable openssl hmac authentication (#1947294)
- Clean spec file: organize dependencies and move URL location

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2021-09-23 11:01:19 +02:00
Björn Esser
360b2d3288
Update patch for parallel build
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-23 10:03:11 +02:00
Björn Esser
38c8f7482a
Add a patch to fix parallel builds with autgenerated sources
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-22 18:28:02 +02:00
Björn Esser
c5ec6f9ed9
Add a patch to fix a missing header include in pam_console
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-13 10:57:06 +02:00
Björn Esser
7c7dec2bc1
Add so_ver macro to avoid accidental soname bumps
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-13 10:40:46 +02:00
Björn Esser
b5205aee6b
Rebase to release 1.5.2
Resolves: #2001208

Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-09-13 10:24:29 +02:00
Iker Pedrosa
06d409fea6 Add macros file to allow other packages to stop hardcoding directory names
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2021-07-22 12:43:41 +02:00
Iker Pedrosa
d335a7441d Fix issues detected by covscan tool 2021-07-09 12:13:54 +02:00
Björn Esser
9ba9b6c09d
Change the default password hash method to yescrypt 2021-06-10 21:23:06 +02:00
Björn Esser
3b25774300
Add a patch to not use crypt_checksalt for password expiration
Resolves: #1965345, #1967150
2021-06-10 21:11:26 +02:00
Benjamin Berg
1d8ac5d19c Add script to avoid fingerprint-auth issues for long term Fedora users
Resolves: #1942443
2021-04-16 15:56:47 +02:00
Iker Pedrosa
ea80571848 Clean auto-generated message from pam stack files 2021-04-12 13:08:18 +02:00
Fedora Release Engineering
ada898394e - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 22:52:14 +00:00
ipedrosa
a880e5be1e Add BuildRequires: make (#1902520) 2020-11-30 16:05:15 +01:00
ipedrosa
15ec0223ed - Rebase to release 1.5.1
- fix CVE-2020-27780: authentication bypass when the user doesn't exist
  and root password is blank (#1901173)
2020-11-26 10:02:41 +01:00
ipedrosa
bcd73c678e - Rebase to release 1.5.0
- Rebase to pam-redhat-1.1.4
- Remove pam_cracklib, pam_tally and pam_tally2
- spec file cleanup
2020-11-11 15:18:15 +01:00
ipedrosa
f35e0f9f10 libpam: fix memory leak in pam_start (#1894630) 2020-11-06 09:21:10 +01:00
ipedrosa
75940340ad - pam_unix: fix missing initialization of daysleft (#1887077)
- pam_motd: change privilege message prompt to default (#1861640)
2020-10-26 11:03:08 +01:00
ipedrosa
767f761a2d - pam_motd: read motd files with target user credentials skipping unreadable ones (#1861640)
- Clarify upstreamed patches
2020-10-14 15:01:34 +02:00
Tom Stellard
8f7e444c74 Add BuildRequires: gcc
https://docs.fedoraproject.org/en-US/packaging-guidelines/C_and_C++/#_packaging
2020-08-04 04:26:20 +00:00
Fedora Release Engineering
96f5e6908b - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 13:05:10 +00:00
ipedrosa
6989bc7495 Added new pam-redhat tarball to lookaside cache 2020-07-02 12:46:54 +02:00