Commit Graph

165 Commits

Author SHA256 Message Date
Thorsten Kukuk
810c4f59c1 - Update to version 1.6.1
- pam_env: fixed --disable-econf --enable-vendordir support.
  - pam_unix: do not warn if password aging is disabled.
  - pam_unix: try to set uid to 0 before unix_chkpwd invocation.
  - pam_unix: allow empty passwords with non-empty hashes.
  - Multiple minor bug fixes, build fixes, portability fixes,
    documentation improvements, and translation updates.
- Remove backports:
  - pam_env-fix_vendordir.patch
  - pam_env-fix-enable-vendordir-fallback.patch
  - pam_env-remove-escaped-newlines.patch
  - pam_unix-fix-password-aging-disabled.patch

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=296
2024-04-10 07:30:15 +00:00
0158e751ab Accepting request 1149618 from home:vlefebvre:branches:Linux-PAM
Use autosetup

OBS-URL: https://build.opensuse.org/request/show/1149618
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=295
2024-02-23 08:28:16 +00:00
Thorsten Kukuk
238a7db197 - Enable pam_canonicalize_user.so
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=293
2024-01-30 15:18:15 +00:00
Thorsten Kukuk
2563154862 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=291 2024-01-19 11:30:53 +00:00
Thorsten Kukuk
488d867f61 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=290 2024-01-19 11:24:46 +00:00
Thorsten Kukuk
3b382a8884 - Move pam_namespace to pam-extra due to systemd dependencies
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=288
2024-01-19 11:13:37 +00:00
Thorsten Kukuk
538371760f - Add post 1.6.0 release fixes for pam_env and pam_unix:
- pam_unix-fix-password-aging-disabled.patch

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=287
2024-01-19 09:49:30 +00:00
Thorsten Kukuk
f0eb90949b - Add post 1.6.0 release fixes for pam_env:
- pam_env-fix-enable-vendordir-fallback.patch
  - pam_env-fix_vendordir.patch
  - pam_env-remove-escaped-newlines.patch

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=285
2024-01-19 09:33:12 +00:00
Thorsten Kukuk
e2402ccf1b OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=284 2024-01-18 17:01:37 +00:00
Thorsten Kukuk
37a6bd3211 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=283 2024-01-18 16:36:00 +00:00
Thorsten Kukuk
089f3fa0f4 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=282 2024-01-18 16:22:56 +00:00
Thorsten Kukuk
182f702c59 - disable-pam_env-test.patch: disable tst-pam_env-retval.c as it is
broken

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=281
2024-01-18 16:09:06 +00:00
Thorsten Kukuk
e352b2c661 - Update to version 1.6.0
- Added support of configuration files with arbitrarily long lines.
  - build: fixed build outside of the source tree.
  - libpam: added use of getrandom(2) as a source of randomness if available.
  - libpam: fixed calculation of fail delay with very long delays.
  - libpam: fixed potential infinite recursion with includes.
  - libpam: implemented string to number conversions validation when parsing
    controls in configuration.
  - pam_access: added quiet_log option.
  - pam_access: fixed truncation of very long group names.
  - pam_canonicalize_user: new module to canonicalize user name.
  - pam_echo: fixed file handling to prevent overflows and short reads.
  - pam_env: added support of '\' character in environment variable values.
  - pam_exec: allowed expose_authtok for password PAM_TYPE.
  - pam_exec: fixed stack overflow with binary output of programs.
  - pam_faildelay: implemented parameter ranges validation.
  - pam_listfile: changed to treat \r and \n exactly the same in configuration.
  - pam_mkhomedir: hardened directory creation against timing attacks.
  - Please note that using *at functions leads to more open file handles
    during creation.
  - pam_namespace: fixed potential local DoS (CVE-2024-22365).
  - pam_nologin: fixed file handling to prevent short reads.
  - pam_pwhistory: helper binary is now built only if SELinux support is
    enabled.
  - pam_pwhistory: implemented reliable usernames handling when remembering
    passwords.
  - pam_shells: changed to allow shell entries with absolute paths only.
  - pam_succeed_if: fixed treating empty strings as numerical value 0.
  - pam_unix: added support of disabled password aging.
  - pam_unix: synchronized password aging with shadow.

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=280
2024-01-18 09:18:10 +00:00
Thorsten Kukuk
add873f61e Accepting request 1105450 from home:kukuk:no-utmp
- Fix building without SELinux

OBS-URL: https://build.opensuse.org/request/show/1105450
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=279
2023-08-23 09:38:24 +00:00
Thorsten Kukuk
8fc5e81cde - pam_access backports from upstream:
- pam_access-doc-IPv6-link-local.patch:
    Document only partial supported IPv6 link local addresses
  - pam_access-hostname-debug.patch:
    Don't print error if we cannot resolve a hostname, does not
    need to be a hostname
  - pam_shells-fix-econf-memory-leak.patch:
    Free econf keys variable
  - disable-examples.patch:
    Don't build examples

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=278
2023-08-07 10:24:04 +00:00
341833cbf9 Accepting request 1085746 from home:kukuk:cleanup
- Update to final 1.5.3 release:
  - configure: added --enable-logind option to use logind instead of utmp
    in pam_issue and pam_timestamp.
  - pam_modutil_getlogin: changed to use getlogin() from libc instead of
    parsing utmp.
  - Added libeconf support to pam_env and pam_shells.
  - Added vendor directory support to pam_access, pam_env, pam_group,
    pam_faillock, pam_limits, pam_namespace, pam_pwhistory, pam_sepermit,
    pam_shells, and pam_time.
  - pam_limits: changed to not fail on missing config files.
  - pam_pwhistory: added conf= option to specify config file location.
  - pam_pwhistory: added file= option to specify password history file
    location.
  - pam_shells: added shells.d support when libeconf and vendordir are enabled.
  - Deprecated pam_lastlog: this module is no longer built by default because
    it uses utmp, wtmp, btmp and lastlog, but none of them are Y2038 safe,
    even on 64bit architectures.
    pam_lastlog will be removed in one of the next releases, consider using
    pam_lastlog2 (from https://github.com/thkukuk/lastlog2) and/or
    pam_wtmpdb (from https://github.com/thkukuk/wtmpdb) instead.
  - Deprecated _pam_overwrite(), _pam_overwrite_n(), and _pam_drop_reply()
    macros provided by _pam_macros.h; the memory override performed by these
    macros can be optimized out by the compiler and therefore can no longer
    be relied upon.

OBS-URL: https://build.opensuse.org/request/show/1085746
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=277
2023-05-09 16:04:51 +00:00
Thorsten Kukuk
81568528fd Accepting request 1080765 from home:kukuk:cleanup
- pam-extra: add split provide

OBS-URL: https://build.opensuse.org/request/show/1080765
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=276
2023-04-20 10:12:45 +00:00
Thorsten Kukuk
e1066a3a40 Accepting request 1078636 from home:kukuk:cleanup
- pam-userdb: add split provide

OBS-URL: https://build.opensuse.org/request/show/1078636
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=275
2023-04-12 11:48:48 +00:00
Thorsten Kukuk
f6b50ba88e Accepting request 1078360 from home:kukuk:cleanup
- Drop pam-xauth_ownership.patch, got fixed in sudo itself
- Drop pam-bsc1177858-dont-free-environment-string.patch, was a 
  fix for above patch

- Use bcond selinux to disable SELinux
- Remove old pam_unix_* compat symlinks
- Move pam_userdb to own pam-userdb sub-package
- pam-extra contains now modules having extended dependencies like
  libsystemd
- Update to 1.5.3.90 git snapshot
- Drop merged patches:
  - pam-git.diff
  - docbook5.patch
  - pam_pwhistory-docu.patch
  - pam_xauth_data.3.xml.patch
- Drop Linux-PAM-1.5.2.90.tar.xz as we have to rebuild all
  documentation anyways and don't use the prebuild versions
- Move all devel manual pages to pam-manpages, too. Fixes the 
  problem that adjusted defaults not shown correct.

  docbook5
- For buggy bot: Makefile-pam_unix-nis.diff belonged to the other
- add macros.pam to abstract directory for pam modules
- pam-limit-nproc.patch: increased process limit to help
  Chrome/Chromuim users with really lots of tabs. New limit gets
- Update to current git (Linux-PAM-git-20140127.diff), which
- Explicitly add pam_systemd.so to list of modules in
- Remove pam_unix-login.defs.diff, not needed anymore
- Added libtool as BuildRequire, and autoreconf -i option to fix
  * manpage is left intact, as it was

OBS-URL: https://build.opensuse.org/request/show/1078360
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=274
2023-04-11 08:24:03 +00:00
Thorsten Kukuk
d8677436cd - Add common-session-nonlogin and postlogin-* pam.d config files
for https://github.com/SUSE/pam-config/pull/16, pam_lastlog2
  and upcoming pam_wtmpdb.

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=273
2023-03-20 10:36:11 +00:00
b0799e0d72 Accepting request 1070768 from home:gbelinassi
- Enable livepatching support on x86_64.

OBS-URL: https://build.opensuse.org/request/show/1070768
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=272
2023-03-15 09:05:09 +00:00
7d61bc6b2a Accepting request 1060632 from home:schubi2
OBS-URL: https://build.opensuse.org/request/show/1060632
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=271
2023-01-25 10:56:16 +00:00
Thorsten Kukuk
0d564d8dbe Accepting request 1043306 from home:kukuk:tiu
- Merge pam_unix back into pam, seperate package not needed anymore

- Update pam-git.diff to current upstream
  - pam_env: Use vendor specific pam_env.conf and environment as fallback
  - pam_shells: Use the vendor directory
  obsoletes pam_env_econf.patch
- Refresh docbook5.patch

OBS-URL: https://build.opensuse.org/request/show/1043306
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=268
2022-12-16 09:50:49 +00:00
Thorsten Kukuk
5aa4f5ad81 Accepting request 1041655 from home:kukuk:tiu
- pam_pwhistory-docu.patch, docbook5.patch: convert docu to
  docbook5 
- pam-git.diff: update to current git
  - obsoletes pam-hostnames-in-access_conf.patch
  - obsoletes tst-pam_env-retval.c
- pam_env_econf.patch refresh

OBS-URL: https://build.opensuse.org/request/show/1041655
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=267
2022-12-08 14:52:25 +00:00
Thorsten Kukuk
f8d6ec4fd6 Accepting request 1037574 from home:kukuk:tiu
- Move pam_env config files below /usr/etc

OBS-URL: https://build.opensuse.org/request/show/1037574
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=266
2022-11-23 12:21:53 +00:00
Thorsten Kukuk
a7257563cb Accepting request 1010118 from home:schubi2
- pam_env: Using libeconf for reading configuration and environment
  files.

OBS-URL: https://build.opensuse.org/request/show/1010118
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=264
2022-10-12 09:48:57 +00:00
Thorsten Kukuk
99fd8d508e Accepting request 983463 from home:kukuk:tiu
- Keep old directory in filelist for migration

OBS-URL: https://build.opensuse.org/request/show/983463
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=263
2022-06-17 15:30:56 +00:00
Thorsten Kukuk
c8e4e2b50f Accepting request 982382 from home:kukuk:tiu
Fix paths

OBS-URL: https://build.opensuse.org/request/show/982382
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=262
2022-06-13 08:55:58 +00:00
Thorsten Kukuk
41ae53b4d4 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=261 2022-06-01 12:00:32 +00:00
Thorsten Kukuk
d59ee3f1e1 - Move PAM config files from /usr/etc/pam.d to /usr/lib/pam.d
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=260
2022-06-01 11:43:49 +00:00
Thorsten Kukuk
656f9b5474 Accepting request 961064 from home:kukuk:tiu
- pam-hostnames-in-access_conf.patch: update with upstream
  submission. Fixes several bugs including memory leaks.
- Move group.conf and faillock.conf to /usr/etc/security
- Update to current git for enhanced vendordir support (pam-git.diff)
  Obsoletes:
  - 0001-Include-pam_xauth_data.3.xml-in-source-archive-400.patch
  - 0002-Only-include-vendordir-in-manual-page-if-set-401.patch
  - 0003-Use-vendor-specific-limits.conf-as-fallback-402.patch

OBS-URL: https://build.opensuse.org/request/show/961064
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=259
2022-03-11 11:29:42 +00:00
Thorsten Kukuk
945f25a7ae Accepting request 940243 from home:kukuk:tiu
- Drop pam_umask-usergroups-login_defs.patch, does more harm
  than helps. If not explizit specified as module option, we
  use UMASK from login.defs unmodified.

OBS-URL: https://build.opensuse.org/request/show/940243
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=258
2021-12-13 13:17:12 +00:00
Thorsten Kukuk
4b7b9d93e4 Accepting request 934493 from home:kukuk:tiu
- Don't define doc/manpages packages in main build

OBS-URL: https://build.opensuse.org/request/show/934493
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=257
2021-11-29 09:46:08 +00:00
Thorsten Kukuk
3139982e02 Accepting request 933454 from home:kukuk:tiu
- Add missing recommends and split provides

OBS-URL: https://build.opensuse.org/request/show/933454
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=255
2021-11-24 14:34:36 +00:00
Thorsten Kukuk
30c0969bef Accepting request 933444 from home:kukuk:tiu
- Use multibuild to build docu with correct paths and available
  features.
- common-session: move pam_systemd to first position as if the
  file would have been generated with pam-config
- Add vendordir fixes and enhancements from upstream:
  - 0001-Include-pam_xauth_data.3.xml-in-source-archive-400.patch
  - 0002-Only-include-vendordir-in-manual-page-if-set-401.patch
  - 0003-Use-vendor-specific-limits.conf-as-fallback-402.patch

OBS-URL: https://build.opensuse.org/request/show/933444
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=254
2021-11-24 13:43:37 +00:00
Thorsten Kukuk
343fbe4278 Accepting request 931923 from home:sbrabec:branches:Base:System
- Update pam-login_defs-check.sh regexp and
  login_defs-support-for-pam symbol to version 1.5.2
  (new variable HMAC_CRYPTO_ALGO).

OBS-URL: https://build.opensuse.org/request/show/931923
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=253
2021-11-18 14:13:26 +00:00
Thorsten Kukuk
bdff5d34ca - Rename motd.tmpfiles to pam.tmpfiles
- Add /run/faillock directory

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=249
2021-09-15 13:55:27 +00:00
Thorsten Kukuk
3aaba5773b - pam-login_defs-check.sh: adjust for new login.defs variable usages
pam_tally2 has been removed upstream, remove pam_tally2-removal.patch

- Update to version 1.5.2

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=247
2021-09-10 10:28:05 +00:00
Thorsten Kukuk
dc65a6a40a Accepting request 917897 from home:jmoellers:branches:Linux-PAM
OBS-URL: https://build.opensuse.org/request/show/917897
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=246
2021-09-10 09:48:01 +00:00
Thorsten Kukuk
c6cae773e2 - pam_umask-usergroups-login_defs.patch: Deprecate pam_umask
explicit "usergroups" option and instead read it from login.def's
  "USERGROUP_ENAB" option if umask is only defined there.
  [bsc#1189139]

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=245
2021-08-12 14:45:10 +00:00
Thorsten Kukuk
39b8fe8e87 Accepting request 909931 from home:pgajdos
- package man5/motd.5 as a man-pages link to man8/pam_motd.8
  [bsc#1188724]

OBS-URL: https://build.opensuse.org/request/show/909931
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=244
2021-08-09 08:32:39 +00:00
Thorsten Kukuk
4139f4902b OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=243 2021-07-13 13:53:02 +00:00
Thorsten Kukuk
0fc7ab76cc - revert-check_shadow_expiry.diff: revert wrong
CRYPT_SALT_METHOD_LEGACY check.

- revert-check_shadow_expiry.diff: revert wrong
  CRYPT_SALT_METHOD_LEGACY check.

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=242
2021-07-13 13:43:07 +00:00
Thorsten Kukuk
089ed3e485 Accepting request 903070 from home:lnussel:usrmove
- Remove legacy pre-usrmerge compat code (removed pam-usrmerge.diff)
- Backport patch to not install /usr/etc/securetty (boo#1033626) ie
  no distro defaults and don't complain about it missing
  (pam_securetty-don-t-complain-about-missing-config.patch)
- add debug bcond to be able to build pam with debug output easily
- add macros file to allow other packages to stop hardcoding
  directory names. Compatible with Fedora.

- Remove usrmerged conditional as it's now the default

OBS-URL: https://build.opensuse.org/request/show/903070
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=241
2021-07-09 12:12:20 +00:00
Josef Möllers
dd0389449b Accepting request 902295 from home:gmbr3:Active
- Create /run/motd.d

OBS-URL: https://build.opensuse.org/request/show/902295
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=240
2021-06-25 09:44:49 +00:00
Thorsten Kukuk
24e9b7b6ee Accepting request 883597 from home:jmoellers:branches:Linux-PAM
bsc1184358

OBS-URL: https://build.opensuse.org/request/show/883597
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=236
2021-04-07 13:01:25 +00:00
Josef Möllers
9080c178e7 Accepting request 882509 from home:jmoellers:branches:Linux-PAM
OBS-URL: https://build.opensuse.org/request/show/882509
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=235
2021-04-01 08:02:50 +00:00
Thorsten Kukuk
5e8c266a79 Accepting request 872794 from home:kukuk:etc
- Split out pam_unix module and build without NIS support


- Fix split provides and BuildRequires 

- standalone pam_unix with NIS support

OBS-URL: https://build.opensuse.org/request/show/872794
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=232
2021-02-16 10:28:19 +00:00
Thorsten Kukuk
9f34df244a Accepting request 854846 from home:lnussel:usrmove
Actually apply patch

OBS-URL: https://build.opensuse.org/request/show/854846
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=231
2020-12-17 08:06:56 +00:00
Thorsten Kukuk
070ad9f4c2 Accepting request 851800 from home:lnussel:usrmove
- add macros.pam to abstract directory for pam modules 

- prepare usrmerge (boo#1029961, pam-usrmerge.diff)

OBS-URL: https://build.opensuse.org/request/show/851800
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=230
2020-12-03 13:58:29 +00:00