SHA256
1
0
forked from pool/shadow

211 Commits

Author SHA256 Message Date
10a1dcc006 Accepting request 1288422 from Base:System
- Update to 4.18.0:
  * CI: purge man-db #1241
  * passwd: document exit code when PAM has errored #1244
  * Man patches #1175
  * Quick fix: define E_PAM_ERR in lib/pam_pass.c #1245
  * Accept /usr/sbin/nologin as an alternate to /sbin/nologin #1246
  * Add LOGIN_ENV_SAFELIST to FOREIGNDEFS #1248
  * ci: add gawk as a fedora dependency #1252
  * man/useradd.8.xml: fix the CREATE_HOME description #1251
  * lib/getdate.y: Restrict the date formats that we support #1238
  * newuidmap: better error logging on failure #1254
  * Extend basic test cases to check shadow and gshadow entries #1237
  * lib/sizeof.h: Make sure STRLEN() only accepts string literals #1260
  * Add strprefix(), and use it instead of its pattern #1152
  * src/: Simplify, using strpbrk(3) #1167
  * lib/string/strdup/: STRNDUPA(): Reimplement in terms of strndupa(3) #1189
  * Remove dead beef #1230
  * lib/atoi/a2i/: Simplify these macros #1137
  * strtolower(): Add API, and use it instead of its pattern #1211
  * lib/: sget*ent(): Simplify #1146
  * fields #1150
  * yacc(1) is a dead language; bury it deep in the ground #1217
  * Test expiration date #1233
  * [scp] Add strcaseprefix(), and use it instead of its pattern #1262
  * valid_field(): Improve readability #1208
  * lib/, src/, tests/: Use the standard countof() instead of our NITEMS() #1259
  * lib/fs/mkstemp/, src/: Move fmkomstemp() to separate files under
    lib/fs/mkstemp/, and split into mkomstemp() #1139
  * [x][v]aprintf(): Add APIs, and use them instead of [x][v]asprintf(3) #1168
  * lib/get_pid.c: pid_t is a signed integer #1264

OBS-URL: https://build.opensuse.org/request/show/1288422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=78
2025-06-26 09:34:23 +00:00
3d641d62fb - Update to 4.18.0:
* CI: purge man-db #1241
  * passwd: document exit code when PAM has errored #1244
  * Man patches #1175
  * Quick fix: define E_PAM_ERR in lib/pam_pass.c #1245
  * Accept /usr/sbin/nologin as an alternate to /sbin/nologin #1246
  * Add LOGIN_ENV_SAFELIST to FOREIGNDEFS #1248
  * ci: add gawk as a fedora dependency #1252
  * man/useradd.8.xml: fix the CREATE_HOME description #1251
  * lib/getdate.y: Restrict the date formats that we support #1238
  * newuidmap: better error logging on failure #1254
  * Extend basic test cases to check shadow and gshadow entries #1237
  * lib/sizeof.h: Make sure STRLEN() only accepts string literals #1260
  * Add strprefix(), and use it instead of its pattern #1152
  * src/: Simplify, using strpbrk(3) #1167
  * lib/string/strdup/: STRNDUPA(): Reimplement in terms of strndupa(3) #1189
  * Remove dead beef #1230
  * lib/atoi/a2i/: Simplify these macros #1137
  * strtolower(): Add API, and use it instead of its pattern #1211
  * lib/: sget*ent(): Simplify #1146
  * fields #1150
  * yacc(1) is a dead language; bury it deep in the ground #1217
  * Test expiration date #1233
  * [scp] Add strcaseprefix(), and use it instead of its pattern #1262
  * valid_field(): Improve readability #1208
  * lib/, src/, tests/: Use the standard countof() instead of our NITEMS() #1259
  * lib/fs/mkstemp/, src/: Move fmkomstemp() to separate files under
    lib/fs/mkstemp/, and split into mkomstemp() #1139
  * [x][v]aprintf(): Add APIs, and use them instead of [x][v]asprintf(3) #1168
  * lib/get_pid.c: pid_t is a signed integer #1264

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=205
2025-06-25 04:31:06 +00:00
ef2726a1af Accepting request 1268156 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1268156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=77
2025-04-10 19:57:13 +00:00
69b0472a77 - shadow-util-linux.patch: util-linux-2.41 introduced new variable:
LOGIN_ENV_SAFELIST. Recognize it and update dependencies. The
  patch includes gh/shadow-maint/shadow/pull#1248.
- shadow-login_defs-check-login_defs.lst: Make the util-linux.spec
  multibuild file compatible with quilt. Make it working with new
  quilt.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=203
2025-04-09 12:16:52 +00:00
9499fa5aa4 Accepting request 1254773 from Base:System
- Update to 4.17.4:
  * Revert "lib/, src/: Use local time for human-readable dates"
  * lib/getdate.y: Ignore time-zone information and use UTC
  * src/chfn.c: Partially revert "lib/, src/: Use strsep(3) instead of its pattern"
  * src/chfn.c: Use stpsep() instead of its pattern
  * src/chfn.c: Add local variable to refer to the separated field
  * src/chfn.c: copy_field(): Rename local variable
  * lib/commonio.c: Rely on the POSIX.1-2008 behavior of realpath(3)
  * lib/fs/readlink/: readlinknul(): Use ssize_t to simplify
  * autogen.sh: Promote -Wsign-compare to an error
  * lib/sizeof.h: ssizeof(): Add signed variant of sizeof
  * src/lastlog.c: Use ssizeof() to avoid a -Wsign-compare diagnostic
  * tests/unit/test_xasprintf.c: Fix sign-mismatch diagnostic
  * configure.ac: stop checking for utmp location
  * configure.ac: be deterministic about passwd location
  * lib/, src/: update audit messages
  * lib/: audit function for groups
  * src/: update group audit messages
  * doc/: Remove list of distributions

OBS-URL: https://build.opensuse.org/request/show/1254773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=76
2025-03-24 12:25:33 +00:00
ff87c0a0df - Update to 4.17.4:
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=201
2025-03-20 15:27:59 +00:00
98317afee4 - Update o 4.17.4:
* Revert "lib/, src/: Use local time for human-readable dates"
  * lib/getdate.y: Ignore time-zone information and use UTC
  * src/chfn.c: Partially revert "lib/, src/: Use strsep(3) instead of its pattern"
  * src/chfn.c: Use stpsep() instead of its pattern
  * src/chfn.c: Add local variable to refer to the separated field
  * src/chfn.c: copy_field(): Rename local variable
  * lib/commonio.c: Rely on the POSIX.1-2008 behavior of realpath(3)
  * lib/fs/readlink/: readlinknul(): Use ssize_t to simplify
  * autogen.sh: Promote -Wsign-compare to an error
  * lib/sizeof.h: ssizeof(): Add signed variant of sizeof
  * src/lastlog.c: Use ssizeof() to avoid a -Wsign-compare diagnostic
  * tests/unit/test_xasprintf.c: Fix sign-mismatch diagnostic
  * configure.ac: stop checking for utmp location
  * configure.ac: be deterministic about passwd location
  * lib/, src/: update audit messages
  * lib/: audit function for groups
  * src/: update group audit messages
  * doc/: Remove list of distributions

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=200
2025-03-20 06:54:14 +00:00
9570886365 Accepting request 1248228 from Base:System
- Update to 4.17.3:
  * chsh: do not warn about blank shell
  * lib/: Use strisdigit() instead of its pattern
  * lib/string/ctype/strisascii/: strisdigit(): Add function
  * lib/string/: Add comments expanding the letter-soup API names
  * lib/basename.c: Basename(): Use stprcspn() instead of its pattern
  * lib/string/strspn/, lib/, src/: stprspn(), strrspn_(): Split API into function and macro
  * lib/string/strspn/, lib/, src/: Move *spn() APIs to separate subdir
  * lib/string/strchr/: strrcspn(), stprcspn(): Add function and macro
  * src/useradd.c: Use !strcaseeq() instead of its pattern
  * lib/, src/: Use strcaseeq() instead of its pattern
  * lib/string/strcmp/: strcaseeq(): Add function
  * man/useradd.8.xml: Document new exit code 19 (E_BAD_NAME)
  * src/useradd.c: E_BAD_NAME: Use a different error code for bad login names
  * src/useradd.c: create_home(): Use !streq() instead of its pattern
  * lib/chkname.c: is_valid_name(): Use streq() instead of its pattern
  * configure.ac, lib/: Use __has_include(<gshadow.h>) instead of HAVE_GSHADOW_H
  * configure.ac: Remove unused AC_CHECK_HEADERS() checks
  * configure.ac, lib/: Use __has_include(<sys/capability.h>) instead of HAVE_SYS_CAPABILITY_H
  * lib/idmapping.c: Unconditionally include <sys/prctl.h>
  * lib/: Use __has_include(<security/openpam.h>) instead of HAVE_SECURITY_OPENPAM_H
  * lib/: Use __has_include(<security/pam_misc.h>) instead of HAVE_SECURITY_PAM_MISC_H
  * configure.ac, lib/: Use __has_include(<sys/random.h>) instead of HAVE_SYS_RANDOM_H
  * configure.ac, lib/: Use __has_include(<crypt.h>) instead of HAVE_CRYPT_H
  * lib/, src/: motd(): Report errors instead of exiting from library code
  * lib/motd.c: motd(): Invert logic to reduce indentation
  * lib/, src/, doc/: Remove pw_auth()'s $3 as dead code
  * lib/pwauth.*: PW_{ADD,CHANGE,DELETE,FTP,REXEC}: Remove dead code
  * lib/, src/, doc/: Remove dead code
  * src/vipw.c: Restore the original terminal pgrp after editing

OBS-URL: https://build.opensuse.org/request/show/1248228
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=75
2025-02-27 13:48:57 +00:00
f9cca37efb OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=198 2025-02-24 18:13:41 +00:00
8b21cc40d6 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=197 2025-02-24 18:11:28 +00:00
89e70817a2 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=196 2025-02-24 18:09:36 +00:00
da6be40af0 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=195 2025-02-24 18:07:06 +00:00
b2db6c21bc OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=194 2025-02-24 18:04:44 +00:00
420307f9ea - Update to 4.17.3:
* chsh: do not warn about blank shell
  * lib/: Use strisdigit() instead of its pattern
  * lib/string/ctype/strisascii/: strisdigit(): Add function
  * lib/string/: Add comments expanding the letter-soup API names
  * lib/basename.c: Basename(): Use stprcspn() instead of its pattern
  * lib/string/strspn/, lib/, src/: stprspn(), strrspn_(): Split API into function and macro
  * lib/string/strspn/, lib/, src/: Move *spn() APIs to separate subdir
  * lib/string/strchr/: strrcspn(), stprcspn(): Add function and macro
  * src/useradd.c: Use !strcaseeq() instead of its pattern
  * lib/, src/: Use strcaseeq() instead of its pattern
  * lib/string/strcmp/: strcaseeq(): Add function
  * man/useradd.8.xml: Document new exit code 19 (E_BAD_NAME)
  * src/useradd.c: E_BAD_NAME: Use a different error code for bad login names
  * src/useradd.c: create_home(): Use !streq() instead of its pattern
  * lib/chkname.c: is_valid_name(): Use streq() instead of its pattern
  * configure.ac, lib/: Use __has_include(<gshadow.h>) instead of HAVE_GSHADOW_H
  * configure.ac: Remove unused AC_CHECK_HEADERS() checks
  * configure.ac, lib/: Use __has_include(<sys/capability.h>) instead of HAVE_SYS_CAPABILITY_H
  * lib/idmapping.c: Unconditionally include <sys/prctl.h>
  * lib/: Use __has_include(<security/openpam.h>) instead of HAVE_SECURITY_OPENPAM_H
  * lib/: Use __has_include(<security/pam_misc.h>) instead of HAVE_SECURITY_PAM_MISC_H
  * configure.ac, lib/: Use __has_include(<sys/random.h>) instead of HAVE_SYS_RANDOM_H
  * configure.ac, lib/: Use __has_include(<crypt.h>) instead of HAVE_CRYPT_H
  * lib/, src/: motd(): Report errors instead of exiting from library code
  * lib/motd.c: motd(): Invert logic to reduce indentation
  * lib/, src/, doc/: Remove pw_auth()'s $3 as dead code
  * lib/pwauth.*: PW_{ADD,CHANGE,DELETE,FTP,REXEC}: Remove dead code
  * lib/, src/, doc/: Remove dead code
  * src/vipw.c: Restore the original terminal pgrp after editing

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=193
2025-02-24 17:47:40 +00:00
faf7390363 Accepting request 1238984 from Base:System
- bsc#1235453: Set SYS_{UID,GID}_MIN to 201:
  After repeated similar requests to change the ID ranges we set the
  above mentioned value to 201. The max value will stay at 499.
  This range should be sufficient and will give us leeway for the
  future.
  It's not straightforward to find out which static UIDs/GIDs are
  used in all packages.
  Update shadow-login_defs-suse.patch

OBS-URL: https://build.opensuse.org/request/show/1238984
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=74
2025-01-21 20:09:56 +00:00
e6d68f710a - bsc#1235453: Set SYS_{UID,GID}_MIN to 201:
After repeated similar requests to change the ID ranges we set the
  above mentioned value to 201. The max value will stay at 499.
  This range should be sufficient and will give us leeway for the
  future.
  It's not straightforward to find out which static UIDs/GIDs are
  used in all packages.
  Update shadow-login_defs-suse.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=191
2025-01-20 10:26:02 +00:00
a70f8202f6 Accepting request 1237059 from Base:System
- Update to 4.17.2:
  * src/login_nopam.c: Fix compiler warnings #1170
  * lib/chkname.c: Put limits for LOGIN_NAME_MAX and sysconf(_SC_LOGIN_NAME_MAX) #1169
  * Use HTTPS in link to Wikipedia article on password strength #1164
  * lib/attr.h: use C23 attributes only with gcc >= 10 #1172
  * login: Fix no-pam authorization regression #1174
  * man: Add Portuguese translation #1178
  * Update French translation #1177
  * Add cheap defense mechanisms #1171
  * Add Romanian translation #1176

OBS-URL: https://build.opensuse.org/request/show/1237059
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=73
2025-01-14 15:21:06 +00:00
b485849e2a - Update to 4.17.2:
* src/login_nopam.c: Fix compiler warnings #1170
  * lib/chkname.c: Put limits for LOGIN_NAME_MAX and sysconf(_SC_LOGIN_NAME_MAX) #1169
  * Use HTTPS in link to Wikipedia article on password strength #1164
  * lib/attr.h: use C23 attributes only with gcc >= 10 #1172
  * login: Fix no-pam authorization regression #1174
  * man: Add Portuguese translation #1178
  * Update French translation #1177
  * Add cheap defense mechanisms #1171
  * Add Romanian translation #1176

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=189
2025-01-11 16:38:29 +00:00
3fe1d7e250 Accepting request 1234180 from Base:System
- Update to 4.17.1:
  * Fix `su -` regression #1163

OBS-URL: https://build.opensuse.org/request/show/1234180
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=72
2025-01-02 18:19:11 +00:00
6d5f08146e * Fix su - regression #1163
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=187
2024-12-31 19:43:29 +00:00
113257727e - Update to 4.17.1:
* su: Fix `su -` regression #1163

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=186
2024-12-31 19:43:06 +00:00
1d046b70cc Accepting request 1233577 from Base:System
- Update to 4.17.0:
  * Fix the lower part of the domain of csrand_uniform()
  * Fix use of volatile pointer
  * Use 'dist-hook' to clean up <tests/unit/Makefile>
  * Use str2[u]l() instead of atoi(3)
  * Use a2i() in various places
  * Fix const correctness
  * Use uid_t for holding UIDs (and GIDs)
  * Move all sprintf(3)-like APIs to a subdirectory
  * Move all copying APIs to a subdirectory
  * Fix forever loop on ENOMEM
  * Fix REALLOC() nmemb calculation
  * Remove id(1)
  * Remove groups(1)
  * Use local time for human-readable dates
  * Use %F instead of %Y-%m-%d with strftime(3)
  * is_valid{user,group}_name(): Set errno to distinguish the reasons
  * Recommend --badname only if it is useful
  * Add fmkomstemp() to fix mode of </etc/default/useradd>
  * Fix use-after-free bug in sgetgrent()
  * Update Catalan translation
  * Remove references to cppw, cpgr
  * groupadd, groupmod: Update gshadow file with -U
  * Added option -a for listing active users only, optimized using if aflg,return
  * Added information in lastlog man page for new option '-a'
  * Plenty of code cleanup and clarifications

- Update to 4.17.0 RC1:
  Pre-release without changelog

OBS-URL: https://build.opensuse.org/request/show/1233577
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=71
2024-12-30 11:50:27 +00:00
2ad7a94d8c - Update to 4.17.0:
* Fix the lower part of the domain of csrand_uniform()
  * Fix use of volatile pointer
  * Use 'dist-hook' to clean up <tests/unit/Makefile>
  * Use str2[u]l() instead of atoi(3)
  * Use a2i() in various places
  * Fix const correctness
  * Use uid_t for holding UIDs (and GIDs)
  * Move all sprintf(3)-like APIs to a subdirectory
  * Move all copying APIs to a subdirectory
  * Fix forever loop on ENOMEM
  * Fix REALLOC() nmemb calculation
  * Remove id(1)
  * Remove groups(1)
  * Use local time for human-readable dates
  * Use %F instead of %Y-%m-%d with strftime(3)
  * is_valid{user,group}_name(): Set errno to distinguish the reasons
  * Recommend --badname only if it is useful
  * Add fmkomstemp() to fix mode of </etc/default/useradd>
  * Fix use-after-free bug in sgetgrent()
  * Update Catalan translation
  * Remove references to cppw, cpgr
  * groupadd, groupmod: Update gshadow file with -U
  * Added option -a for listing active users only, optimized using if aflg,return
  * Added information in lastlog man page for new option '-a'
  * Plenty of code cleanup and clarifications

- Update to 4.17.0 RC1:
  Pre-release without changelog

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=184
2024-12-27 16:21:20 +00:00
1976b7cf41 Accepting request 1193090 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1193090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=70
2024-08-13 11:21:47 +00:00
e8cce0bcd0 Accepting request 1183021 from Base:System
- bsc#1226850: Drop incorrect econf patch (until time to fix it)
  Drop shadow-4.16.0-econf.patch

OBS-URL: https://build.opensuse.org/request/show/1183021
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=69
2024-06-25 21:06:26 +00:00
4fa713e7d0 - bsc#1226850: Drop incorrect econf patch (until time to fix it)
Drop shadow-4.16.0-econf.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=180
2024-06-24 13:05:26 +00:00
51afa9a830 Accepting request 1181876 from Base:System
- Update to 4.16.0:
  * The shadow implementations of id(1) and groups(1) are deprecated
    in favor of the GNU coreutils and binutils versions.
    They will be removed in 4.17.0.
  * The rlogind implementation has been removed.
  * The libsubid major version has been bumped, since it now requires
    specification of the module's free() implementation.
- Update shadow-login_defs-suse.patch
- Add shadow-4.16.0-econf.patch:
  Replace deprecated econf_readDirs with econf_readConfig

OBS-URL: https://build.opensuse.org/request/show/1181876
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=68
2024-06-21 14:03:18 +00:00
7956c76734 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=178 2024-06-20 07:18:43 +00:00
1c262ae87f OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=177 2024-06-20 07:12:18 +00:00
826df7f957 - Update to 4.16.0:
* The shadow implementations of id(1) and groups(1) are deprecated
    in favor of the GNU coreutils and binutils versions.
    They will be removed in 4.17.0.
  * The rlogind implementation has been removed.
  * The libsubid major version has been bumped, since it now requires
    specification of the module's free() implementation.
- Update shadow-login_defs-suse.patch
- Add shadow-4.16.0-econf.patch:
  Replace deprecated econf_readDirs with econf_readConfig

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=176
2024-06-19 07:13:11 +00:00
467ea622d2 Accepting request 1161093 from Base:System
- Update to 4.15.1:
  * Fix a bug that caused spurious error messages about unknown
    login.defs configuration options #967
  * Adding checks for fd omission #964
  * Use temporary stat buffer #974
  * Fix wrong french translation #975
- Drop shadow-4.15.0-fix-definition.patch

OBS-URL: https://build.opensuse.org/request/show/1161093
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=67
2024-03-25 20:06:06 +00:00
57303d29a0 - Update to 4.15.1:
* Fix a bug that caused spurious error messages about unknown
    login.defs configuration options #967
  * Adding checks for fd omission #964
  * Use temporary stat buffer #974
  * Fix wrong french translation #975
- Drop shadow-4.15.0-fix-definition.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=174
2024-03-24 09:13:40 +00:00
85fe6a4a20 Accepting request 1159987 from Base:System
- Add shadow-4.15.0-fix-definition.patch:
  Fix error messages about config options.
  See gh/shadow-maint/shadow#967

- Update to 4.15.0
  * libshadow:
    + Use utmpx instead of utmp. This fixes a regression introduced
      in 4.14.0.
    + Fix build error (parameter name omitted).
  * Build system:
    + Link correctly with libdl.
    + Install pam configs for chpasswd(8) and newusers(8) when using
      ./configure --with-libpam --disable-account-tools-setuid.
    + Merge libshadow and libmisc into a single libshadow. This fixes
      problems in the linker, which were reported at least in Gentoo.
    + Fix build with musl libc.
    + Support out of tree builds
  * useradd(8):
    + Set proper SELinux labels for def_usrtemplate
- Update Serge Hallyns GPG key
- Update shadow-login_defs-unused-by-pam.patch

OBS-URL: https://build.opensuse.org/request/show/1159987
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=66
2024-03-22 14:15:59 +00:00
0f42921987 - Add shadow-4.15.0-fix-definition.patch:
Fix error messages about config options.
  See gh/shadow-maint/shadow#967

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=172
2024-03-21 06:39:57 +00:00
413dcfbcf9 - Update to 4.15.0
* libshadow:
    + Use utmpx instead of utmp. This fixes a regression introduced
      in 4.14.0.
    + Fix build error (parameter name omitted).
  * Build system:
    + Link correctly with libdl.
    + Install pam configs for chpasswd(8) and newusers(8) when using
      ./configure --with-libpam --disable-account-tools-setuid.
    + Merge libshadow and libmisc into a single libshadow. This fixes
      problems in the linker, which were reported at least in Gentoo.
    + Fix build with musl libc.
    + Support out of tree builds
  * useradd(8):
    + Set proper SELinux labels for def_usrtemplate
- Update Serge Hallyns GPG key
- Update shadow-login_defs-unused-by-pam.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=171
2024-03-10 07:16:34 +00:00
de9c0c0e13 Accepting request 1154375 from Base:System
- Update to 4.14.6:
  * login(1):
    + Fix off-by-one bugs.
  * passwd(1):
    + Don't silently truncate passwords of length >= 200 characters.
      Instead, accept a length of PASS_MAX, and reject longer ones.
  * libshadow:
    + Fix calculation in strtoday(), which caused a wrong half-day
      offset in some cases (bsc#1176006)
    + Fix parsing of dates in get_date() (bsc#1176006)
    + Use utmpx instead of utmp. This fixes a regression introduced in
      4.14.0.

OBS-URL: https://build.opensuse.org/request/show/1154375
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=65
2024-03-04 20:24:37 +00:00
a62399592e - Update to 4.14.6:
* login(1):
    + Fix off-by-one bugs.
  * passwd(1):
    + Don't silently truncate passwords of length >= 200 characters.
      Instead, accept a length of PASS_MAX, and reject longer ones.
  * libshadow:
    + Fix calculation in strtoday(), which caused a wrong half-day
      offset in some cases (bsc#1176006)
    + Fix parsing of dates in get_date() (bsc#1176006)
    + Use utmpx instead of utmp. This fixes a regression introduced in
      4.14.0.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=169
2024-03-03 06:16:59 +00:00
8122d2daff Accepting request 1146473 from Base:System
- Update to 4.14.5:
  * Build system:
     + Fix regression introduced in 4.14.4, due to a typo. chgpasswd had
       been deleted from a Makefile variable, but it should have been
       chpasswd.
- Remove shadow-4.14.4-chgpasswd-typo.patch

- Update to 4.14.4:
  * Build system:
    + Link correctly with libdl.
    + Install pam configs for chpasswd(8) and newusers(8) when using
      ./configure --with-libpam --disable-account-tools-setuid.
  * libshadow:
    + Fix build error (parameter name omitted).
    + Fix off-by-one bug.
    + Remove warning.
- Add shadow-4.14.4-chgpasswd-typo.patch: to fix build. See #926
- Update patch macro `patchN` -> `patch -P N`

OBS-URL: https://build.opensuse.org/request/show/1146473
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=64
2024-02-16 20:45:28 +00:00
504a5a8a2a - Update to 4.14.5:
* Build system:
     + Fix regression introduced in 4.14.4, due to a typo. chgpasswd had
       been deleted from a Makefile variable, but it should have been
       chpasswd.
- Remove shadow-4.14.4-chgpasswd-typo.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=167
2024-02-13 18:46:23 +00:00
b61dc19e89 Accepting request 1146447 from home:jubalh:branches:Base:System
- Update to 4.14.4:
  * Build system:
    + Link correctly with libdl.
    + Install pam configs for chpasswd(8) and newusers(8) when using
      ./configure --with-libpam --disable-account-tools-setuid.
  * libshadow:
    + Fix build error (parameter name omitted).
    + Fix off-by-one bug.
    + Remove warning.
- Add shadow-4.14.4-chgpasswd-typo.patch: to fix build. See #926
- Update patch macro `patchN` -> `patch -P N`

OBS-URL: https://build.opensuse.org/request/show/1146447
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=166
2024-02-13 15:32:50 +00:00
0703facd01 Accepting request 1139074 from Base:System
- Update to 4.14.3:
  * libshadow:
    + Avoid null pointer dereference (#904)

OBS-URL: https://build.opensuse.org/request/show/1139074
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=63
2024-01-17 21:14:09 +00:00
63a97837c7 - Update to 4.14.3:
* libshadow:
    + Avoid null pointer dereference (#904)

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=164
2024-01-16 07:04:58 +00:00
42f26e4728 Accepting request 1137739 from Base:System
- bsc#1199026 bsc#1203823:
  Remove pam_keyinit from PAM configuration.
  This was introduced for bsc#1144060.

OBS-URL: https://build.opensuse.org/request/show/1137739
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=62
2024-01-11 20:04:31 +00:00
ad60077eda - bsc#1199026 bsc#1203823:
Remove pam_keyinit from PAM configuration.
  This was introduced for bsc#1144060.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=162
2024-01-09 14:17:29 +00:00
ed667551d3 Accepting request 1121084 from Base:System
- Update to 4.14.2:
  * libshadow:
    + Fix build with musl libc.
    + Avoid NULL dereference.
    + Update utmp at an initial login
  * useradd(8):
    + Set proper SELinux labels for def_usrtemplate
  * Manual:
    + Document --prefix in chage(1), chpasswd(8), and passwd(1)
- Drop upstreamed shadow-4.14.0-selinux-labels.patch

OBS-URL: https://build.opensuse.org/request/show/1121084
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=61
2023-10-31 19:24:26 +00:00
f19bcfd712 - Update to 4.14.2:
* libshadow:
    + Fix build with musl libc.
    + Avoid NULL dereference.
    + Update utmp at an initial login
  * useradd(8):
    + Set proper SELinux labels for def_usrtemplate
  * Manual:
    + Document --prefix in chage(1), chpasswd(8), and passwd(1)
- Drop upstreamed shadow-4.14.0-selinux-labels.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=160
2023-10-30 07:27:10 +00:00
8cdab85ffc Accepting request 1115994 from Base:System
- Update to 4.14.1:
  Build system: Merge libshadow and libmisc into a single libshadow.
  This fixes problems in the linker, which were reported at least
  in Gentoo. #791
- Add Alejandro Colomar (new stable branch maintainer) to shadow.keyring

OBS-URL: https://build.opensuse.org/request/show/1115994
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=60
2023-10-06 19:11:40 +00:00
c317274c66 - Update to 4.14.1:
Build system: Merge libshadow and libmisc into a single libshadow.
  This fixes problems in the linker, which were reported at least
  in Gentoo. #791
- Add Alejandro Colomar (new stable branch maintainer) to shadow.keyring

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=158
2023-10-06 08:44:42 +00:00
d61b4112dd Accepting request 1114284 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1114284
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=59
2023-10-02 18:04:17 +00:00
8a856d91ac Accepting request 1114040 from home:jsegitz:branches:Base:System
- Add shadow-4.14.0-selinux-labels.patch:
  Set proper SELinux labels for new homedirs.
  See gh/shadow-maint/shadow#812.

OBS-URL: https://build.opensuse.org/request/show/1114040
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=156
2023-09-29 08:42:12 +00:00
89460a18ea Accepting request 1104351 from Base:System
- Remove dependency on libbsd:
  On Tumbleweed we have glibc 2.38 already thus string functions
  like strlcpy will be present and won't be needed from libbsd.
  `readpassphrase()` is then the only function from libbsd not present.
  Upstream shadow has an in tree copy of it, that is used when the
  `--without-libbsd` flag is passed along.
  By relying on glibc 2.38 we don't need to add libbsd and libmd
  to our ring0 but can't easily upgrade on SLE.

- Update to 4.14.0:
  * configure: add with-libbsd option
  * Code cleanup
  * Replace utmp interface #757 
  * new option enable-logind #674
  * shadow userdel: add the adaptation to the busybox ps in 01-kill_user_procs.sh
  * chsh: warn if root sets a shell not listed in /etc/shells #535
  * newgrp: fix potential string injection
  * lastlog: fix alignment of Latest header
  * Fix yescrypt support #748
  * chgpasswd: Fix segfault in command-line options
  * gpasswd: Fix password leak
  * Add --prefix to passwd, chpasswd and chage #714 (bsc#1206627)
  * usermod: fix off-by-one issues #701
  * ch(g)passwd: Check selinux permissions upon startup #675
  * sub_[ug]id_{add,remove}: fix return values
  * chsh: Verify that login shell path is absolute #730
  * process_prefix_flag: Drop privileges
  * run_parts for groupadd and groupdel #706
  * newgrp/useradd: always set SIGCHLD to default
  * useradd/usermod: add --selinux-range argument #698

OBS-URL: https://build.opensuse.org/request/show/1104351
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=58
2023-08-18 17:26:58 +00:00
89d6ca85a0 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=154 2023-08-17 10:24:51 +00:00
2745f98eaf - Remove dependency on libbsd:
On Tumbleweed we have glibc 2.38 already thus string functions
  like strlcpy will be present and won't be needed from libbsd.
  `readpassphrase()` is then the only function from libbsd not present.
  Upstream shadow has an in tree copy of it, that is used when the
  `--without-libbsd` flag is passed along.
  By relying on glibc 2.38 we don't need to add libbsd and libmd
  to our ring0 but can't easily upgrade on SLE.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=153
2023-08-17 10:17:53 +00:00
1108d9a8b3 - This release depends either on libbsd or on glibc >= 2.38
which only recently got released. libbsd (and libmd) would be
  new packages in our ring0

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=152
2023-08-17 07:07:20 +00:00
87279e85bb * configure: add with-libbsd option
* Code cleanup
  * Replace utmp interface #757 
  * new option enable-logind #674
  * shadow userdel: add the adaptation to the busybox ps in 01-kill_user_procs.sh
  * chsh: warn if root sets a shell not listed in /etc/shells #535
  * newgrp: fix potential string injection
  * lastlog: fix alignment of Latest header
  * Fix yescrypt support #748
  * chgpasswd: Fix segfault in command-line options
  * gpasswd: Fix password leak
  * Add --prefix to passwd, chpasswd and chage #714 (bsc#1206627)
  * usermod: fix off-by-one issues #701
  * ch(g)passwd: Check selinux permissions upon startup #675
  * sub_[ug]id_{add,remove}: fix return values
  * chsh: Verify that login shell path is absolute #730
  * process_prefix_flag: Drop privileges
  * run_parts for groupadd and groupdel #706
  * newgrp/useradd: always set SIGCHLD to default
  * useradd/usermod: add --selinux-range argument #698
  * sssd: skip flushing if executable does not exist #699
  * semanage: Do not set default SELinux range #676
  * Add control character check #687
  * usermod: respect --prefix for --gid option
  * Fix null dereference in basename
  * newuidmap and newgidmap: support passing pid as fd
  * Prevent out of boundary access #633
  * Explicitly override only newlines #633
  * Correctly handle illegal system file in tz #633
  * Supporting vendor given -shells- configuration file #599

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=151
2023-08-17 07:04:09 +00:00
d8c5f764fa - Dont build lastlog (lastlog.legacy) anymore since we
use lastlog2 by default now.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=150
2023-08-14 13:58:58 +00:00
51ee267bd3 - Update to 4.14.0:
- Refresh useradd-default.patch
- Remove upstreamed patches:
  * useradd-userkeleton.patch
  * shadow-audit-no-id.patch
  * shadow-fix-print-login-timeout.patch
  * shadow-CVE-2023-29383.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=149
2023-08-04 15:48:26 +00:00
3d8b1375a7 Accepting request 1080172 from Base:System
- bsc#1210507 (CVE-2023-29383):
  Check for control characters
- Add shadow-CVE-2023-29383.patch

OBS-URL: https://build.opensuse.org/request/show/1080172
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=57
2023-04-21 12:15:33 +00:00
de2ffbd8a7 - bsc#1210507 (CVE-2023-29383):
Check for control characters
- Add shadow-CVE-2023-29383.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=147
2023-04-18 16:15:03 +00:00
60f84ce541 Accepting request 1079091 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1079091
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=56
2023-04-16 14:06:38 +00:00
c13dad9ccc Accepting request 1078648 from home:kukuk:branches:Base:System
- Rename lastlog to lastlog.legacy to be able to switch to
  Y2038 safe lastlog2 as default [jsc#PED-3144]

OBS-URL: https://build.opensuse.org/request/show/1078648
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=145
2023-04-13 09:15:30 +00:00
2fe7ade94a Accepting request 1066319 from Base:System
- Update shadow-fix-print-login-timeout.patch
- Reorder source files and patches

- Remove scripts that claim to be config but are in /usr (boo#1191578)
  * userdel-script.patch
  * useradd-script.patch
  * useradd.local
  * userdel-post.local
  * userdel-pre.local

OBS-URL: https://build.opensuse.org/request/show/1066319
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=55
2023-02-19 17:18:38 +00:00
cdd1d85c79 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=143 2023-02-17 07:53:56 +00:00
c963e461dd - Reorder source files and patches
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=142
2023-02-16 11:42:49 +00:00
4ed74d809a - Update shadow-fix-print-login-timeout.patch
- Reorder source files

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=141
2023-02-16 11:35:29 +00:00
3a9edf4780 - Remove scripts that claim to be config but are in /usr (boo#1191578)
* userdel-script.patch
  * useradd-script.patch
  * useradd.local
  * userdel-post.local
  * userdel-pre.local

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=140
2023-02-16 09:24:10 +00:00
e2af94b0ed Accepting request 1065945 from home:lnussel:branches:Base:System
- remove scripts that claim to be config but are in /usr (boo#1191578)

OBS-URL: https://build.opensuse.org/request/show/1065945
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=139
2023-02-16 09:21:12 +00:00
b27c231a63 Accepting request 1058151 from Base:System
- Add shadow-fix-print-login-timeout.patch:
  Fix printing full login timeout message
  See gh/shadow-maint/shadow#621

  See gh/shadow-maint/shadow#606

OBS-URL: https://build.opensuse.org/request/show/1058151
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=54
2023-01-15 16:57:46 +00:00
4c6bdfaa5d - Add shadow-fix-print-login-timeout.patch:
Fix printing full login timeout message
  See gh/shadow-maint/shadow#621
  See gh/shadow-maint/shadow#606

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=137
2023-01-13 08:24:43 +00:00
50d83362ee Accepting request 1043310 from Base:System
- bsc#1205502: Fix useradd audit event logging of ID field
  * Add shadow-audit-no-id.patch

OBS-URL: https://build.opensuse.org/request/show/1043310
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=53
2022-12-18 16:22:23 +00:00
5ee66f6a14 - bsc#1205502: Fix useradd audit event logging of ID field
* Add shadow-audit-no-id.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=135
2022-12-16 10:10:32 +00:00
c4ba14a87f Accepting request 1034857 from Base:System
- Update to 4.13:
  * useradd.8: fix default group ID
  * Revert drop of subid_init()
  * Georgian translation
  * useradd: Avoid taking unneeded space: do not reset non-existent data
    in lastlog
  * relax username restrictions
  * selinux: check MLS enabled before setting serange
  * copy_tree: use fchmodat instead of chmod
  * copy_tree: don't block on FIFOs
  * add shell linter
  * copy_tree: carefully treat permissions
  * lib/commonio: make lock failures more detailed
  * lib: use strzero and memzero where applicable
  * Update Dutch translation
  * Don't test for NULL before calling free
  * Use libc MAX() and MIN()
  * chage: Fix regression in print_date
  * usermod: report error if homedir does not exist
  * libmisc: minimum id check for system accounts
  * fix usermod -rG x y wrongly adding a group
  * man: add missing space in useradd.8.xml
  * lastlog: check for localtime() return value
  * Raise limit for passwd and shadow entry length
  * Remove adduser-old.c
  * useradd: Fix buffer overflow when using a prefix
  * Don't warn when failed to open /etc/nsswitch.conf
- Remove patches we took from upstream pre-release:
  * shadow-copytree-usermod-fifo.patch
  * shadow-chage-format.patch

OBS-URL: https://build.opensuse.org/request/show/1034857
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=52
2022-11-12 16:39:48 +00:00
8c1e3ce264 - Update to 4.13:
* useradd.8: fix default group ID
  * Revert drop of subid_init()
  * Georgian translation
  * useradd: Avoid taking unneeded space: do not reset non-existent data
    in lastlog
  * relax username restrictions
  * selinux: check MLS enabled before setting serange
  * copy_tree: use fchmodat instead of chmod
  * copy_tree: don't block on FIFOs
  * add shell linter
  * copy_tree: carefully treat permissions
  * lib/commonio: make lock failures more detailed
  * lib: use strzero and memzero where applicable
  * Update Dutch translation
  * Don't test for NULL before calling free
  * Use libc MAX() and MIN()
  * chage: Fix regression in print_date
  * usermod: report error if homedir does not exist
  * libmisc: minimum id check for system accounts
  * fix usermod -rG x y wrongly adding a group
  * man: add missing space in useradd.8.xml
  * lastlog: check for localtime() return value
  * Raise limit for passwd and shadow entry length
  * Remove adduser-old.c
  * useradd: Fix buffer overflow when using a prefix
  * Don't warn when failed to open /etc/nsswitch.conf
- Remove patches we took from upstream pre-release:
  * shadow-copytree-usermod-fifo.patch
  * shadow-chage-format.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=133
2022-11-09 13:35:08 +00:00
639c9f801b Accepting request 1034152 from Base:System
- Add shadow-copytree-usermod-fifo.patch:
  Fix regression that prevented `usermod -m` to work when their
  home directory contained at least one fifo
  See https://github.com/shadow-maint/shadow/pull/565

OBS-URL: https://build.opensuse.org/request/show/1034152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=51
2022-11-09 11:55:54 +00:00
91f075eb3d - Add shadow-copytree-usermod-fifo.patch:
Fix regression that prevented `usermod -m` to work when their
  home directory contained at least one fifo
  See https://github.com/shadow-maint/shadow/pull/565

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=131
2022-11-07 11:26:02 +00:00
205ec2f07a Accepting request 1032849 from Base:System
- bsc#1204811: Fix chage date format string regression
  * Add shadow-chage-format.patch

OBS-URL: https://build.opensuse.org/request/show/1032849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=50
2022-11-04 16:31:23 +00:00
ec972ebebd - bsc#1204811: Fix chage date format string regression
* Add shadow-chage-format.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=129
2022-11-02 11:01:13 +00:00
33a33d170a Accepting request 1030965 from Base:System
- Add shadow-prefix-overflow.patch:
  Fix buffer overflow when calling useradd with --prefix
  See https://github.com/shadow-maint/shadow/pull/588

OBS-URL: https://build.opensuse.org/request/show/1030965
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=49
2022-10-26 10:31:12 +00:00
30472fc2d8 - Add shadow-prefix-overflow.patch:
Fix buffer overflow when calling useradd with --prefix
  See https://github.com/shadow-maint/shadow/pull/588

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=127
2022-10-24 22:07:29 +00:00
58b710d489 Accepting request 999092 from Base:System
- Update to 4.12.3:
  Revert removal of subid_init, which should have bumped soname.
  So note that 4.12 through 4.12.2 were broken for subid users.

- Update to 4.12.2:
  * Address CVE-2013-4235 (TOCTTOU when copying directories) [bsc#916845]
- Refresh useradd-userkeleton.patch:
  LSTAT() was removed with https://github.com/shadow-maint/shadow/pull/545
  Let's use fstatat() now.

- Update to 4.12.1:
  * Fix uk manpages
- Remove shadow-4.12-remove-uk.patch: fixed upstream

- Update to 4.12:
  * Add absolute path hint to --root
  * Various cleanups
  * Fix Ubuntu release used in CI tests
  * add -F options to userad
  * useradd manpage updates
  * Check for ownerid (not just username) in subid ranges
  * Declare file local functions static
  * Use strict prototypes
  * Do not drop const qualifier for Basename
  * Constify various pointers
  * Don't return uninitialized memory
  * Don't let compiler optimize away memory cleaning
  * Remove many obsolete compatibility checks  and defines
  * Modify ID range check in useradd
  * Use "extern "C"" to make libsubid easier to use from C++

OBS-URL: https://build.opensuse.org/request/show/999092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=48
2022-08-26 07:08:03 +00:00
2fcb52ebdf OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=125 2022-08-24 14:58:41 +00:00
b7b2971a9a - Update to 4.12.3:
Revert removal of subid_init, which should have bumped soname.
  So note that 4.12 through 4.12.2 were broken for subid users.

- Update to 4.12.2:
  * Address CVE-2013-4235 (TOCTTOU when copying directories) [bsc#916845]
- Refresh useradd-userkeleton.patch:
  LSTAT() was removed with https://github.com/shadow-maint/shadow/pull/545
  Let's use fstatat() now.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=124
2022-08-22 14:01:13 +00:00
c714985a2e - Update to 4.12.1:
* Fix uk manpages
- Remove shadow-4.12-remove-uk.patch: fixed upstream

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=123
2022-08-15 17:45:21 +00:00
ccb51bf365 - Update to 4.12:
* Add absolute path hint to --root
  * Various cleanups
  * Fix Ubuntu release used in CI tests
  * add -F options to userad
  * useradd manpage updates
  * Check for ownerid (not just username) in subid ranges
  * Declare file local functions static
  * Use strict prototypes
  * Do not drop const qualifier for Basename
  * Constify various pointers
  * Don't return uninitialized memory
  * Don't let compiler optimize away memory cleaning
  * Remove many obsolete compatibility checks  and defines
  * Modify ID range check in useradd
  * Use "extern "C"" to make libsubid easier to use from C++
  * French translation updates
  * Fix s/with-pam/with-libpam/
  * Spanish translation updates
  * French translation fixes
  * Default max group name length to 32
  * Fix PAM service files without-selinux
  * Improve manpages
    - groupadd, useradd, usermod
    - groups and id
    - pwck
  * Add fedora to CI builds
  * Fix condition under which pw_dir check happens
  * logoutd: switch to strncat
  * AUTHORS: improve markdown output

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=122
2022-08-12 06:09:36 +00:00
0ca771d496 Accepting request 993912 from home:kukuk:branches:Base:System
- Remove duplicate pam.d/useradd entry
- Provide /etc/login.defs.d on SLE15 since we support and use it
- Use %_pam_vendordir macro

OBS-URL: https://build.opensuse.org/request/show/993912
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=121
2022-08-09 09:45:37 +00:00
d2ca3da6d4 Accepting request 946483 from Base:System
- The legacy code does not support /etc/login.defs.d used by YaST.
  Enable libeconf to read it (bsc#1192954).

- Update to 4.11.1:
  * build: include lib/shadowlog_internal.h in dist tarballs

- Update to 4.11:
  * Handle possible TOCTTOU issues in usermod/userdel
  	- (CVE-2013-4235)
  	- Use O_NOFOLLOW when copying file
  	- Kill all user tasks in userdel
  * Fix useradd -D segfault
  * Clean up obsolete libc feature-check ifdefs
  * Fix -fno-common build breaks due to duplicate Prog declarations
  * Have single date_to_str definition
  * Fix libsubid SONAME version
  * Clarify licensing info, use SPDX.

- Update to 4.10:
  * From this release forward, su from this package should be
    considered deprecated. Please replace any users of it with su
	from util-linux
  * libsubid fixes
  * Rename the test program list_subid_ranges to getsubids, write
    a manpage, so distros can ship it.
  * Add libeconf dep for new*idmap
  * Allow all group types with usermod -G
  * Avoid useradd generating empty subid range
  * Handle NULL pw_passwd
  * Fix default value SHA_get_salt_rounds

OBS-URL: https://build.opensuse.org/request/show/946483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=47
2022-01-16 22:18:02 +00:00
a4f7b923a4 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=120 2022-01-14 17:43:13 +00:00
123ea0a422 Accepting request 945900 from home:sbrabec:branches:shadow-j23399
This is submitted just to sync with SLE/Leap. It has no effect for Factory.
- The legacy code does not support /etc/login.defs.d used by YaST.
  Enable libeconf to read it (bsc#1192954).

OBS-URL: https://build.opensuse.org/request/show/945900
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=119
2022-01-14 17:26:54 +00:00
bba5d5413c - Update to 4.11.1:
* build: include lib/shadowlog_internal.h in dist tarballs

- Update to 4.11:
  * Handle possible TOCTTOU issues in usermod/userdel
  	- (CVE-2013-4235)
  	- Use O_NOFOLLOW when copying file
  	- Kill all user tasks in userdel
  * Fix useradd -D segfault
  * Clean up obsolete libc feature-check ifdefs
  * Fix -fno-common build breaks due to duplicate Prog declarations
  * Have single date_to_str definition
  * Fix libsubid SONAME version
  * Clarify licensing info, use SPDX.

- Update to 4.10:
  * From this release forward, su from this package should be
    considered deprecated. Please replace any users of it with su
	from util-linux
  * libsubid fixes
  * Rename the test program list_subid_ranges to getsubids, write
    a manpage, so distros can ship it.
  * Add libeconf dep for new*idmap
  * Allow all group types with usermod -G
  * Avoid useradd generating empty subid range
  * Handle NULL pw_passwd
  * Fix default value SHA_get_salt_rounds
  * Use https where possible in README
  * Update content and format of README
  * Translation updates

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=118
2022-01-03 12:19:45 +00:00
2406289d86 Accepting request 935176 from Base:System
OBS-URL: https://build.opensuse.org/request/show/935176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=46
2021-12-17 22:54:20 +00:00
87fcc1bbed Accepting request 934763 from home:kukuk:branches:Base:System
- Really enable USERGROUPS_ENAB [bsc#1189139].
  Did go lost during merges.

OBS-URL: https://build.opensuse.org/request/show/934763
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=117
2021-12-02 13:01:23 +00:00
6f9efa1aed Accepting request 932263 from Base:System
- Fix segfaults in newgrp and pwck
  * Add shadow-4.9-newgrp-segfault.patch 
    https://github.com/shadow-maint/shadow/pull/437
  * Add shadow-4.9-pwck-segfault.patch
    https://github.com/shadow-maint/shadow/pull/445

- Added hardening to systemd service(s) (bsc#1181400). Modified:
  * shadow.service

- shadow-util-linux.patch:
  * Remove the section patching lib/getdef.c in favor of the
    upstream FOREIGNDEFS.
  * Add LOGIN_KEEP_USERNAME to login.defs.
  * Remove PREVENT_NO_AUTH from login.defs. Only used by the
    unpackaged login and su.
- shadow-login_defs-unused-by-pam.patch:
  * Remove variables BCRYPT_MIN_ROUNDS, BCRYPT_MAX_ROUNDS,
    YESCRYPT_COST_FACTOR, not supported by the current
    configuratiton.
- Update login_defs-support-for-pam symbol to version 1.5.2
  (support for new variable HMAC_CRYPTO_ALGO).
- Update login_defs-support-for-util-linux to version 2.37
  (support for new variable LOGIN_KEEP_USERNAME).
- Refresh shadow-login_defs-comments.patch and
  shadow-login_defs-suse.patch.
- Improve shadow-login_defs-check.sh:
  * Add helper to import local new version in the parent dir.
  * Fix spec editing sed expression.
  * Add PREVENT_NO_AUTH to known unused variables.
  * Update pam sed expression to find HMAC_CRYPTO_ALGO.

OBS-URL: https://build.opensuse.org/request/show/932263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=45
2021-11-21 22:51:28 +00:00
9d0c114d24 - Fix segfaults in newgrp and pwck
* Add shadow-4.9-newgrp-segfault.patch 
    https://github.com/shadow-maint/shadow/pull/437
  * Add shadow-4.9-pwck-segfault.patch
    https://github.com/shadow-maint/shadow/pull/445

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=116
2021-11-18 13:50:59 +00:00
815e18bc02 Accepting request 932180 from home:jsegitz:branches:systemdhardening:Base:System
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort

OBS-URL: https://build.opensuse.org/request/show/932180
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=115
2021-11-18 13:38:29 +00:00
2204667d89 Accepting request 931937 from home:sbrabec:branches:Base:System
- shadow-util-linux.patch:
  * Remove the section patching lib/getdef.c in favor of the
    upstream FOREIGNDEFS.
  * Add LOGIN_KEEP_USERNAME to login.defs.
  * Remove PREVENT_NO_AUTH from login.defs. Only used by the
    unpackaged login and su.
- shadow-login_defs-unused-by-pam.patch:
  * Remove variables BCRYPT_MIN_ROUNDS, BCRYPT_MAX_ROUNDS,
    YESCRYPT_COST_FACTOR, not supported by the current
    configuratiton.
- Update login_defs-support-for-pam symbol to version 1.5.2
  (support for new variable HMAC_CRYPTO_ALGO).
- Update login_defs-support-for-util-linux to version 2.37
  (support for new variable LOGIN_KEEP_USERNAME).
- Refresh shadow-login_defs-comments.patch and
  shadow-login_defs-suse.patch.
- Improve shadow-login_defs-check.sh:
  * Add helper to import local new version in the parent dir.
  * Fix spec editing sed expression.
  * Add PREVENT_NO_AUTH to known unused variables.
  * Update pam sed expression to find HMAC_CRYPTO_ALGO.
  * Add more sanity checks.

OBS-URL: https://build.opensuse.org/request/show/931937
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=114
2021-11-17 16:18:12 +00:00
7f56492672 Accepting request 920286 from Base:System
- bsc#1190146: Fix empty subid range
  Add shadow-4.9-useradd-subuid.patch
  https://github.com/shadow-maint/shadow/pull/399

- bsc#1190145: Fix double free in gpasswd:
  Add shadow-4.9-sgent-free.patch upstreamed as
  https://github.com/shadow-maint/shadow/pull/417

- Fix shadow-login_defs-check.sh:
  In the last update we switched from calling make to %make_build
  macro. Using sed to adapt the spec file now.

- libsubid-devel: add missing requires for libsubid3
- Remove README.changes-pwdutils, all distros you can upgrade from
  use already shadow

- login.defs: Enable USERGROUPS_ENAB and CREATE_HOME to
  be compatible with other Linux distros and the other tools
  creating user accounts in use on openSUSE. Set HOME_MODE to 700
  for security reasons and compatibility. [bsc#1189139] [bsc#1182850]

- Update to 4.9:
  * Updated translations
  * Major salt updates
  * Various coverity and cleanup fixes
  * Consistently use 0 to disable PASS_MIN_DAYS in man
  * Implement NSS support for subids and a libsubid
  * setfcap: retain setfcap when mapping uid 0
  * login.defs: include HMAC_CRYPTO_ALGO key
  * selinux fixes

OBS-URL: https://build.opensuse.org/request/show/920286
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=44
2021-09-22 20:12:46 +00:00
c9c98a79f2 - bsc#1190146: Fix empty subid range
Add shadow-4.9-useradd-subuid.patch
  https://github.com/shadow-maint/shadow/pull/399

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=113
2021-09-20 09:46:44 +00:00
c08b0a69cc OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=112 2021-09-20 09:36:14 +00:00
1864140f9d - bsc#1190145: Fix double free in gpasswd:
Add shadow-4.9-sgent-free.patch upstreamed as
  https://github.com/shadow-maint/shadow/pull/417

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=111
2021-09-20 09:10:46 +00:00
c47e0f3e3c for security reasons and compatibility. [bsc#1189139] [bsc#1182850]
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=110
2021-09-16 10:24:51 +00:00
31b62a4fb1 - Add shadow-passwd-handle-null.patch [bsc#1188307]:
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=109
2021-09-16 10:15:59 +00:00
8f871cae62 - Fix shadow-login_defs-check.sh:
In the last update we switched from calling make to %make_build
  macro. Using sed to adapt the spec file now.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=108
2021-09-07 15:09:34 +00:00
c8f7c173d8 Accepting request 912922 from home:kukuk:tiu
- libsubid-devel: add missing requires for libsubid3
- Remove README.changes-pwdutils, all distros you can upgrade from
  use already shadow
- login.defs: Enable USERGROUPS_ENAB and CREATE_HOME to
  be compatible with other Linux distros and the other tools
  creating user accounts in use on openSUSE. Set HOME_MODE to 700
  for security reasons and compatibility. [bsc#1189139]

OBS-URL: https://build.opensuse.org/request/show/912922
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=107
2021-08-18 17:54:07 +00:00
3317029e04 Accepting request 912915 from home:jubalh:branches:Base:System
- Update to 4.9:
  * Updated translations
  * Major salt updates
  * Various coverity and cleanup fixes
  * Consistently use 0 to disable PASS_MIN_DAYS in man
  * Implement NSS support for subids and a libsubid
  * setfcap: retain setfcap when mapping uid 0
  * login.defs: include HMAC_CRYPTO_ALGO key
  * selinux fixes
  * Fix path prefix path handling
  * Manpage updates
  * Treat an empty passwd field as invalid(Haelwenn Monnier)
  * newxidmap: allow running under alternative gid
  * usermod: check that shell is executable
  * Add yescript support
  * useradd memleak fixes
  * useradd: use built-in settings by default
  * getdefs: add foreign
  * buffer overflow fixes
  * Adding run-parts style for pre and post useradd/del
- Refresh:
  * shadow-login_defs-unused-by-pam.patch
  * userdel-script.patch
  * useradd-script.patch
  * chkname-regex.patch
  * useradd-default.patch: bbf4b79 stopped shipping default file.
    change group in code now.
  * shadow-login_defs-suse.patch
  * useradd-userkeleton.patch
- Remove because upstreamed:

OBS-URL: https://build.opensuse.org/request/show/912915
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=106
2021-08-18 14:25:29 +00:00
5460746738 Accepting request 903625 from Base:System
OBS-URL: https://build.opensuse.org/request/show/903625
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=43
2021-07-06 21:30:00 +00:00
e27cf8c34f Accepting request 903400 from home:kukuk:branches:Base:System
- login.defs/MOTD_FILE: Use "" instead of blank entry [bsc#1187536]
- Add /etc/login.defs.d directory

OBS-URL: https://build.opensuse.org/request/show/903400
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=105
2021-07-02 06:52:55 +00:00
faf07ff787 Accepting request 897717 from home:mauriziogalli:branches:Base:System
- Enable shadowgrp so that we can set more secure group passwords 
  using shadow.

OBS-URL: https://build.opensuse.org/request/show/897717
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=104
2021-06-08 06:39:30 +00:00
b6e8d920e2 Accepting request 897344 from home:kukuk:tiu
- Disable MOTD_FILE to allow the use of pam_motd to unify motd
  message output [bsc#1185897]. Else motd entries of e.g. cockpit
  will not be shown.

OBS-URL: https://build.opensuse.org/request/show/897344
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=103
2021-06-08 06:36:00 +00:00
c2abc15313 Accepting request 872327 from Base:System
OBS-URL: https://build.opensuse.org/request/show/872327
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=42
2021-04-15 14:56:33 +00:00
451a55ed1d Accepting request 871006 from home:sbrabec:branches:distconfdir-fix
No change in code. Integrate changes in SLE/Leap branch into older changelog entries in Factory.

OBS-URL: https://build.opensuse.org/request/show/871006
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=101
2021-02-15 09:45:08 +00:00
1b82897569 Accepting request 867612 from home:sbrabec:branches:distconfdir-fix
- Do not require libeconf-devel on products without /usr/etc.

OBS-URL: https://build.opensuse.org/request/show/867612
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=100
2021-01-30 08:05:35 +00:00
a4ea6b15c3 Accepting request 865245 from home:kukuk:branches:Base:System
- Split login.defs configuration file into own sub-package, which
  allows to install util-linux or pam on small embedded/edge
  systems or container without the need to pull in the full shadow
  suite.

OBS-URL: https://build.opensuse.org/request/show/865245
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=99
2021-01-21 08:48:53 +00:00
ff3f23e669 Accepting request 848094 from home:favogt:boo1178296
- Amend patches/useradd-userkeleton.patch to also write into
  existing directories and prefer files from /etc

OBS-URL: https://build.opensuse.org/request/show/848094
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=98
2020-11-12 10:32:46 +00:00
cf082dac01 Add support for /usr/etc/skel to useradd binary its self
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=97
2020-11-11 11:39:56 +00:00
2ab464b379 Accepting request 845486 from Base:System
- Change again useradd.local script to let it work even for system
  accounts and work together with SELinux (bsc#1178296)
- Change patch useradd-script.patch to support the four arguments
  used by the useradd.local script (bsc#1178296)

OBS-URL: https://build.opensuse.org/request/show/845486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=41
2020-11-07 20:00:53 +00:00
5d3b7a8e02 bsc#1178296
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=95
2020-11-02 15:56:45 +00:00
ca326d2c6f Accepting request 840431 from Base:System
- Add support for /usr/etc/skel to useradd.local script (boo#1173321) 

- shadow-login_defs-check.sh: Fix the regexp to get a real variable
  list (boo#1164274).

OBS-URL: https://build.opensuse.org/request/show/840431
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=40
2020-10-15 11:43:47 +00:00
6ffcde29a4 boo#1173321
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=93
2020-10-09 13:16:40 +00:00
0b9efbf5e4 Accepting request 840138 from home:sbrabec:branches:util-linux-multibuild
- shadow-login_defs-check.sh: Fix the regexp to get a real variable
  list (boo#1164274).

OBS-URL: https://build.opensuse.org/request/show/840138
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=92
2020-10-08 20:42:21 +00:00
f7538674ac Accepting request 834532 from Base:System
OBS-URL: https://build.opensuse.org/request/show/834532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=39
2020-09-23 16:38:48 +00:00
a52384dc01 Accepting request 833343 from home:sbrabec:branches:util-linux-multibuild
- login.defs: Add support for new util-linux-2.36 login variable
  MOTD_FIRSTONLY (shadow-util-linux.patch).
- shadow-login_defs-comments.patch: Remove duplicated
  LASTLOG_UID_MAX.
- shadow-login_defs-check.sh: Update for new build system.
- shadow-util-linux.patch: Restore lost chunk: SYSLOG_SU_ENAB is
  not used in SUSE Linux.
- Refresh shadow-login_defs-suse.patch and
  shadow-login_defs-comments.patch.

OBS-URL: https://build.opensuse.org/request/show/833343
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=90
2020-09-15 07:22:16 +00:00
165d60dff5 Accepting request 809695 from Base:System
OBS-URL: https://build.opensuse.org/request/show/809695
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=38
2020-06-11 12:37:08 +00:00
57f8487ce4 Accepting request 808197 from home:favogt:branches:Base:System
- Use pure #!/bin/sh in:
  * useradd.local
  * userdel-post.local
  * userdel-pre.local

OBS-URL: https://build.opensuse.org/request/show/808197
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=88
2020-05-27 20:51:02 +00:00
a4b4076f54 Accepting request 767297 from Base:System
- Update to 4.8.1:
  * selinux: include stdio
  * man: don't suggest making groupmems user-writeable
  * Makefile: bail out on error in for loops
  * Adding logging of SSH_ORIGINAL_COMMAND to nologin
  * add new HOME_MODE login.defs option
  * Add tty logging to useradd
  * Useradd: make non-executable shell check only a warning
  * Update Dutch translation
  * user_busy: Do not mistake a regular user process for a namespaced one
  * Revert "Honor --sbindir and --bindir for binary installation"
- Remove shadow-4.8-shell-check.patch: included
- Remove shadow-4.8-selinux-include.patch: upstreamed

OBS-URL: https://build.opensuse.org/request/show/767297
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=37
2020-02-04 18:50:58 +00:00
1600e1cd6f - Update to 4.8.1:
* selinux: include stdio
  * man: don't suggest making groupmems user-writeable
  * Makefile: bail out on error in for loops
  * Adding logging of SSH_ORIGINAL_COMMAND to nologin
  * add new HOME_MODE login.defs option
  * Add tty logging to useradd
  * Useradd: make non-executable shell check only a warning
  * Update Dutch translation
  * user_busy: Do not mistake a regular user process for a namespaced one
  * Revert "Honor --sbindir and --bindir for binary installation"
- Remove shadow-4.8-shell-check.patch: included
- Remove shadow-4.8-selinux-include.patch: upstreamed

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=86
2020-01-26 08:10:24 +00:00
9f37ba3939 Accepting request 765745 from Base:System
- Set 0755 for chpasswd, groupadd, groupdel, groupmod, newusers,
  useradd, userdel, usermod explicitly.

- bsc#1160729: Make valid shell check only a warning
  * Add shadow-4.8-shell-check.patch

- Update to 4.8:
  * Initial optional bcrypt support.
  * Make build/install of 'su' optional.
  * Fix for vipw not resuming correctly when suspended
  * Sync password field descriptions in manpages
  * Check for valid shell argument in useradd
  * Allow translation of new strings through POTFILES.in
  * Migrate to itstool for translations
  * Migrate to new SELinux api
  * Support --enable-vendordir
  * pwck: Only check homedir if set and not a system user
  * Support nonstandard usernames
  * sget{pw,gr}ent: check for data at EOL
  * Add YYY-MM-DD support in chage
  * Fix failing chmod calls for suidubins
  * Fix --sbindir and --bindir for binary installations
  * Fix LASTLOG_UID_MAX in login.defs
  * Fix configure error with dash
- Remove because upstreamed:
  * libeconf.patch
  * shadow-usermod-variable.patch
- Rebase:
  * shadow-login_defs-unused-by-pam.patch
  * chkname-regex.patch

OBS-URL: https://build.opensuse.org/request/show/765745
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=36
2020-01-25 12:22:40 +00:00
66751a06ed - Set 0755 for chpasswd, groupadd, groupdel, groupmod, newusers,
useradd, userdel, usermod explicitly.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=84
2020-01-20 10:38:01 +00:00
50741a7c13 - bsc#1160729: Make valid shell check only a warning
* Add shadow-4.8-shell-check.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=83
2020-01-16 13:01:03 +00:00
9b62b0468b OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=82 2019-12-17 12:46:08 +00:00
93639b1c76 - Update to 4.8:
* Initial optional bcrypt support.
  * Make build/install of 'su' optional.
  * Fix for vipw not resuming correctly when suspended
  * Sync password field descriptions in manpages
  * Check for valid shell argument in useradd
  * Allow translation of new strings through POTFILES.in
  * Migrate to itstool for translations
  * Migrate to new SELinux api
  * Support --enable-vendordir
  * pwck: Only check homedir if set and not a system user
  * Support nonstandard usernames
  * sget{pw,gr}ent: check for data at EOL
  * Add YYY-MM-DD support in chage
  * Fix failing chmod calls for suidubins
  * Fix --sbindir and --bindir for binary installations
  * Fix LASTLOG_UID_MAX in login.defs
  * Fix configure error with dash
- Remove because upstreamed:
  * libeconf.patch
  * shadow-usermod-variable.patch
- Rebase:
  * shadow-login_defs-unused-by-pam.patch
  * chkname-regex.patch
  * shadow-util-linux.patch
  * shadow-login_defs-comments.patch
- Add shadow-4.8-selinux-include.patch
  See https://github.com/shadow-maint/shadow/pull/200

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=81
2019-12-17 12:44:46 +00:00
299551910f Accepting request 736424 from Base:System
OBS-URL: https://build.opensuse.org/request/show/736424
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=35
2019-10-22 13:36:45 +00:00
6511638aa9 Accepting request 735615 from home:kukuk:etc
- libeconf.patch: Add support for libeconf and /usr/etc for
  login.defs.
- Move first configuration files and pam config files to /usr/etc

OBS-URL: https://build.opensuse.org/request/show/735615
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=79
2019-10-09 08:44:59 +00:00
d85fda1de2 Accepting request 727986 from Base:System
OBS-URL: https://build.opensuse.org/request/show/727986
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=34
2019-09-07 09:27:09 +00:00
2d8b6fc024 Accepting request 727985 from home:jubalh:branches:Base:System
- bsc#1144060: Add pam_keyinit.so to /etc/pam.d configuration files
  to support kernel keyring feature
- Update pamd.tar.bz2 with pam configuration files accordingly

OBS-URL: https://build.opensuse.org/request/show/727985
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=77
2019-09-03 11:21:48 +00:00
477b858b57 Accepting request 724580 from home:kukuk:branches:Base:System
- encryption_method_nis.patch: drop, DES should really not be used
  anymore anywhere, even with NIS
- shadow-login_defs-suse.patch: remove encryption NIS entry

OBS-URL: https://build.opensuse.org/request/show/724580
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=76
2019-08-20 13:09:49 +00:00
bc90d78307 Accepting request 719471 from Base:System
OBS-URL: https://build.opensuse.org/request/show/719471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=33
2019-08-05 09:18:32 +00:00
1b97de0f5f Accepting request 719010 from home:sbrabec:branches:util-linux-2.34
- Fix incorrect variable name in usermod
  (shadow-usermod-variable.patch).
- shadow-login_defs-comments.patch:
  * Drop SHA_CRYPT_*_ROUNDS that are in the upstream login.defs.
  * Add missing LASTLOG_UID_MAX.
  * Refresh shadow-login_defs-suse.patch.
- Port shadow-login_defs-check.sh to match the current spec file
  and login.defs.

OBS-URL: https://build.opensuse.org/request/show/719010
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=74
2019-07-29 05:36:59 +00:00
934d6edc81 Accepting request 718763 from home:kukuk:container
- Provide "useradd_or_adduser_dep" for sysuser-shadow

OBS-URL: https://build.opensuse.org/request/show/718763
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=73
2019-07-26 08:31:05 +00:00
7e24d2adf7 Accepting request 718317 from home:sbrabec:branches:Base:System
- shadow-login_defs-suse.patch: Set ALWAYS_SET_PATH default to
  "yes" (bsc#353876#c7).
And fix patch name in older changes entry:
  * shadow-util-linux.patch

OBS-URL: https://build.opensuse.org/request/show/718317
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=72
2019-07-25 08:37:25 +00:00
f88d9bfee4 - Fix comment about patch in spec file
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=71
2019-07-19 10:20:29 +00:00
7313beaf68 Accepting request 716648 from home:sbrabec:branches:Base:System
Structured comment typo fix that should be part of Tue Apr 30 22:27:14 CEST 2019 change.
If you want changes entry for that, feel free to reject.

OBS-URL: https://build.opensuse.org/request/show/716648
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=70
2019-07-19 10:00:36 +00:00
24f5896ea4 Accepting request 709907 from Base:System
- Update to 4.7:
  * Spawn: don't loop forever on ECHILD
  * Do not fail locking if there is a stale lockfile (Tomas Mraz)
  * Use lckpwdf if prefix not set (Tomas Mraz)
  * Build: check correct DocBook version (Jan Tojnar)
  * Usermod: Print 'no changes' to stdout, not stderr (Serge Hallyn)
  * Add support for btrfs subvolumes for home (Adam Majer)
  * Fix chpasswd long line handling (Nathan Ruiz)
  * Use secure_getenv for gettime (Chris Lamb)
  * Make sp_lstchg reproducible (Chris Lamb)
  * Do not crash commonio_close if db file is not open (Tomas Mraz)
  * Don't flush nscd and sssd cache in read-only mode (Charlie Vuillemez)
  * French manpage update (Alban VIDAL)
  * Fix manpage defaults for SUB_UID/GID_COUNT (Tomas Mraz)
  * Sync po files from shadow.pot (Alban VIDAL)
  * Usermod: guard against unsafe chown of homedir contents (Tomas Mraz)
  * Add LASTLOG_UID_MAX to login.defs (Tomas Mraz)
  * new[ug]idmap file capabilities support (Giuseppe Scrivano and Christian Brauner)
  * Fix segfault in useradd (Tomas Mraz)
  * Coverity issues (Tomas Mraz)
  * Flush sssd caches (Jakub Hrozek)
  * Log UID in nologin (Vladimir Ivanov)
  * run pam_getenvlist after setup_env in su.c (Michael Vogt)
  * Support systems with only utmpx (A. Wilcox)
  * Fix unguarded ENABLE_SUBIDS code (Jan Chren (rindeal))
  * Update po/zh_CN translation (Lion Yang)
  * Create parent dirs for useradd -m (Michael Vetter)
  * Prevent usermod segv
  * Fix usermod crash (fariouche)
- Remove btrfs-subvolumes.patch (fate#316134):

OBS-URL: https://build.opensuse.org/request/show/709907
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=32
2019-07-13 11:33:06 +00:00
36577fca4e - Update to 4.7:
* Spawn: don't loop forever on ECHILD
  * Do not fail locking if there is a stale lockfile (Tomas Mraz)
  * Use lckpwdf if prefix not set (Tomas Mraz)
  * Build: check correct DocBook version (Jan Tojnar)
  * Usermod: Print 'no changes' to stdout, not stderr (Serge Hallyn)
  * Add support for btrfs subvolumes for home (Adam Majer)
  * Fix chpasswd long line handling (Nathan Ruiz)
  * Use secure_getenv for gettime (Chris Lamb)
  * Make sp_lstchg reproducible (Chris Lamb)
  * Do not crash commonio_close if db file is not open (Tomas Mraz)
  * Don't flush nscd and sssd cache in read-only mode (Charlie Vuillemez)
  * French manpage update (Alban VIDAL)
  * Fix manpage defaults for SUB_UID/GID_COUNT (Tomas Mraz)
  * Sync po files from shadow.pot (Alban VIDAL)
  * Usermod: guard against unsafe chown of homedir contents (Tomas Mraz)
  * Add LASTLOG_UID_MAX to login.defs (Tomas Mraz)
  * new[ug]idmap file capabilities support (Giuseppe Scrivano and Christian Brauner)
  * Fix segfault in useradd (Tomas Mraz)
  * Coverity issues (Tomas Mraz)
  * Flush sssd caches (Jakub Hrozek)
  * Log UID in nologin (Vladimir Ivanov)
  * run pam_getenvlist after setup_env in su.c (Michael Vogt)
  * Support systems with only utmpx (A. Wilcox)
  * Fix unguarded ENABLE_SUBIDS code (Jan Chren (rindeal))
  * Update po/zh_CN translation (Lion Yang)
  * Create parent dirs for useradd -m (Michael Vetter)
  * Prevent usermod segv
  * Fix usermod crash (fariouche)
- Remove btrfs-subvolumes.patch (fate#316134):

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=68
2019-06-14 07:41:25 +00:00
f0ae6718ac Accepting request 706602 from Base:System
OBS-URL: https://build.opensuse.org/request/show/706602
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=31
2019-06-12 11:05:24 +00:00
b149187807 Accepting request 706498 from home:pluskalm:branches:Base:System
- Make building more verbose
- Use spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/706498
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=66
2019-05-31 06:00:55 +00:00
92db561161 Accepting request 705901 from home:lnussel:branches:Base:System
- don't specify MOTD_FILE in login.defs but fall back to built in
  defaults of login (boo#1133929)

OBS-URL: https://build.opensuse.org/request/show/705901
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=65
2019-05-28 13:04:19 +00:00
3e975d023a Accepting request 700977 from Base:System
OBS-URL: https://build.opensuse.org/request/show/700977
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=30
2019-05-12 09:31:35 +00:00
4e43c817a1 Accepting request 700494 from home:sbrabec:branches:util-linux-2.33.1
- Split shadow-login_defs.patch hunks to its logical components
  (bsc#1121197):
  * shadow-login_defs-unused-by-pam.patch
  * shadow-login_defs-comments.patch
  * shadow-login_defs-util-linux.patch
  * shadow-login_defs-suse.patch
  * Move appropriate hunks to chkname-regex.patch and
    encryption_method_nis.patch
  * Remove GROUPADD_CMD that is not supported (bsc#1121197#c14).
- Split getdef-new-defs.patch hunks to its logical components
  (bsc#1121197):
  * encryption_method_nis.patch
  * chkname-regex.patch
  * shadow-util-linux.patch
    Add support for login: ALWAYS_SET_PATH and LOGIN_PLAIN_PROMPT.
  * useradd-script.patch, userdel-script.patch
  * Remove duplicated definitions of MOTD_FILE and ENV_PATH.
- Add shadow-login_defs-unused-check.sh to allow verification of
  login.defs variable usage (bsc#1121197).
- Add virtual symbols for login.defs compatibility (bsc#1121197).

OBS-URL: https://build.opensuse.org/request/show/700494
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=63
2019-05-06 07:58:15 +00:00
33c20f12fb Accepting request 668288 from Base:System
- btrfs-subvolumes.patch: implement support for creating user home
  directories on btrfs subvolumes (fate#316134)

  Additionally changed in that patch (bsc#1106914):

OBS-URL: https://build.opensuse.org/request/show/668288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=29
2019-01-29 13:40:11 +00:00
999ade1779 Additionally changed in that patch (bsc#1106914):
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=61
2019-01-24 10:49:43 +00:00
93bc90d0de Fix option parsing, broken by accident
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=60
2019-01-23 17:20:23 +00:00
981192bf42 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=59 2019-01-23 15:51:22 +00:00
e9204025f7 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=58 2019-01-23 12:44:35 +00:00
f87c80c5df OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=57 2019-01-23 12:36:46 +00:00
1592d69ca0 Accepting request 667981 from home:adamm:branches:Base:System
- btrfs-subvolumes.patch: implement support for creating user home
  directories on btrfs subvolumes (fate#316134)

OBS-URL: https://build.opensuse.org/request/show/667981
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=56
2019-01-23 11:16:47 +00:00
d91ed407f6 Accepting request 646047 from Base:System
OBS-URL: https://build.opensuse.org/request/show/646047
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=28
2018-11-12 08:48:07 +00:00
ef0b03d80a Accepting request 645756 from home:vrothberg:branches:Base:System
- Add empty /etc/sub{u,g}id files. useradd and usermod add entries for users
  only when those files exist. Having those entries is a requirement to create
  user namespaces, for instance, when running podman as a non-root user.

OBS-URL: https://build.opensuse.org/request/show/645756
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=54
2018-11-02 11:24:14 +00:00
14eedbfe38 Accepting request 609804 from Base:System
- Update to 4.6:
  * Newgrp: avoid unnecessary lookups
  * Make language less binary
  * Add error when turning off man switch
  * Spelling fixes
  * Make userdel work with -R
  * newgidmap: enforce setgroups=deny if self-mapping a group
  * Norwegian bokmål translation
  * pwck: prevent crash by not passing O_CREAT
  * WITH_TCB fixes from Mandriva
  * Fix pwconv and grpconv entry skips
  * Fix -- slurping in su
  * add --prefix option
- Remove CVE-2018-7169.patch: upstreamed
- Remove shadow-4.1.5.1-pam_group.patch: upstreamed
- Update userdel-script.patch: change due to prefix
- Update useradd-mkdirs.patch: change due to prefix
  Additionally changed in that patch:
  * Test for strdup() failure
  * Directory to 0755 instead 0777
- Add shadow-4.6.0-fix-usermod-prefix-crash.patch:
  Fixes crash in usermod when called with --prefix.
  See https://github.com/shadow-maint/shadow/issues/110

OBS-URL: https://build.opensuse.org/request/show/609804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=27
2018-05-22 14:57:52 +00:00
60780ba34c - Update to 4.6:
* Newgrp: avoid unnecessary lookups
  * Make language less binary
  * Add error when turning off man switch
  * Spelling fixes
  * Make userdel work with -R
  * newgidmap: enforce setgroups=deny if self-mapping a group
  * Norwegian bokmål translation
  * pwck: prevent crash by not passing O_CREAT
  * WITH_TCB fixes from Mandriva
  * Fix pwconv and grpconv entry skips
  * Fix -- slurping in su
  * add --prefix option
- Remove CVE-2018-7169.patch: upstreamed
- Remove shadow-4.1.5.1-pam_group.patch: upstreamed
- Update userdel-script.patch: change due to prefix
- Update useradd-mkdirs.patch: change due to prefix
  Additionally changed in that patch:
  * Test for strdup() failure
  * Directory to 0755 instead 0777
- Add shadow-4.6.0-fix-usermod-prefix-crash.patch:
  Fixes crash in usermod when called with --prefix.
  See https://github.com/shadow-maint/shadow/issues/110

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=52
2018-05-16 14:26:18 +00:00
1e5ee0fe23 Accepting request 580162 from Base:System
OBS-URL: https://build.opensuse.org/request/show/580162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=26
2018-02-28 18:55:35 +00:00
59e14c5bc5 Accepting request 580122 from home:favogt:licensetag
Use %license (boo#1082318). Please forward to SLE, if possible

OBS-URL: https://build.opensuse.org/request/show/580122
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=50
2018-02-26 09:59:29 +00:00
473451864c Accepting request 577204 from Base:System
OBS-URL: https://build.opensuse.org/request/show/577204
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=25
2018-02-23 14:27:34 +00:00
225b0ce1da Accepting request 577189 from home:kbabioch:branches:Base:System
- Added CVE-2018-7169.patch: Fixed an privilege escalation in newgidmap,
  which allowed an unprivileged user to be placed in a user namespace where
  setgroups(2) is allowed. (CVE-2018-7169 bsc#1081294)

OBS-URL: https://build.opensuse.org/request/show/577189
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=48
2018-02-16 10:33:22 +00:00
f39c0367d4 Accepting request 539856 from Base:System
- bsc#1061838:
  Revert: Requires: group(mail)
  Introduced circular dependency

OBS-URL: https://build.opensuse.org/request/show/539856
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=24
2017-11-15 15:49:00 +00:00
3fa4eb033a - bsc#1061838:
Revert: Requires: group(mail)
  Introduced circular dependency

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=46
2017-11-08 12:41:51 +00:00
90eae380b9 Accepting request 536398 from Base:System
- Revert accidentalied prerequisites.
  Use PreReq for permissions
- Prequire group(shadow), group(root), user(root)
- bsc#1061838:
  Add Requires for group(mail)
- boo#1048645:
  Set suid bit for newuidmap and newgimap
- Revert the changes for bsc#1023895 back
  Pulls in too many deps into ring0.
  Next version of shadow plans to have no conditional man pages.
- run spec-cleaner
- bsc#1023895:
  man page contained invalid options because they depend
  on compile flags and we shipped pre built ones.
  New BuildRequires: docbook-xsl-stylesheets docbook_4 xml2po
  xsltproc
- Adjust requires (we need user/group root instead of aaa_base now)
- New upstream version 4.5
- Refreshed patches:
  * shadow-login_defs.patch
  * chkname-regex.patch
  * getdef-new-defs.patch
  * useradd-mkdirs.patch
- Upstreamed patches:
  * shadow-4.1.5.1-manfix.patch
  * shadow-4.1.5.1-errmsg.patch
  * shadow-4.1.5.1-backup-mode.patch
  * shadow-4.1.5.1-audit-owner.patch
  * shadow-4.2.1-defs-chroot.patch
  * shadow-4.2.1-merge-group.patch
  * Fix-user-busy-errors-at-userdel.patch
  * useradd-clear-tallylog.patch
- shadow-4.1.5.1-pam_group.patch
  dynamically added users via pam_group are not listed in groups
  databases but are still valid
- shadow.keyring: update keyring with current maintainer's keyid
  only - Serge Hallyn 'F1D08DB778185BF784002DFFE9FEEA06A85E3F9D'
- disable_new_audit_function.patch:
  Disable newer libaudit functionality for older distributions
- useradd: call external program "/sbin/pam_tally2" to reset
  failed login counter in "/var/log/tallylog"
  (bsc#980486, useradd-clear-tallylog.patch)
- add keyring, three public keys from https://pkg-shadow.alioth.debian.org/download.php
- bsc#1002975: Use permissions according to permissions package
  and dont try to manipulate them in %files section.
- boo#994486: Include shadow.5 manpage
  Previously this was provided by man-pages package in
  the man-pages-addons tarball which got removed later on.
- Add package dependency for aaa_base, fixing bnc#899409
  (was done by tbehrens@suse.com but not submitted to Factory)
- shadow 4.2.1 requested by fate#320422
- bsc#979069: Dont include shadow-4.1.5.1-bug935203-manpage.patch
- Dont set SUID bit yet. Once bsc#979282 is through, which will adapt the permissions package, we can enable the SUID bits.
  Remove the files used to circumvent the check.
- Remove:
    * shadow-rpmlintrc
    * shadow-subids
    * shadow-subids.easy
    * shadow-subids.secure
    * shadow-subids.paranoid
- Update to shadow-4.2.1:
  - add support for subuids/subgids via newuidmap/newgidmap
- Rename chkname-regex.diff to chkname-regex.patch
- Rename encryption_method_nis.diff to encryption_method_nis.patch
- Rename getdef-new-defs.diff to getdef-new-defs.patch
- Rename shadow-login_defs.diff to shadow-login_defs.patch
- Rename userdel-scripts.diff to userdel-script.patch
- Rename useradd-script.diff to useradd-script.patch
- Rename useradd-default.diff to useradd-default.patch
- Rename useradd-mkdirs.diff to useradd-mkdirs.patch
- Add fixes from Red Hat/Fedora:
  - shadow-4.1.5.1-audit-owner.patch.patch:
    - log owner changes for home directory
  - shadow-4.1.5.1-userdel-helpfix.patch.patch:
    - give a hint about what happens when you force the removal of a user
  - shadow-4.2.1-defs-chroot.patch.patch:
    - initialize uid_t uid_min and uid_t uid_max not before we need them
  - shadow-4.2.1-merge-group.patch.patch:
    - simplify by using a single call to snprintf()
- Add upstream fix
  - Fix-user-busy-errors-at-userdel.patch:
    - call sub_uid_close()
- Moved call from %verifyscript into %post:
  * Caused call to %service_add_post shadow.service shadow.timer
    during rpm -qV shadow
- Add systemd unit files to continuously check password & groupfile integrity
  * Idea from Arch Linux
  * pending request to systemd-presets-branding-openSUSE to enable by default
- Add patch useradd-mkdirs.diff: fix for bnc#865563, create all parts
  of the path
- Stop any systemd user manager instance in case a user entry will
  be deleted (bnc#849870).  Nevertheless a running process requires
  the option --force for the userdel command.
- Add ENCRYPT_METHOD_NIS for pam_unix.so (encryption_method_nis.diff)
- Add some fixes from Fedora:
  - shadow-4.1.5.1-backup-mode.patch: open backup file with correct
    permissions.
  - shadow-4.1.5.1-logmsg.patch: fix error message
  - shadow-4.1.5.1-errmsg.patch: print error reason
  - shadow-4.1.5.1-manfix.patch: fix manual page
- Cleanup login.defs and enable ENCRYPT_METHOD [bnc#802006]
- Fix getdef default variables (getdef-new-defs.diff)
- Fix default group value in /etc/default/useradd 
  (useradd-default.diff)
- Implement CHARACTER_CLASS support
  (chkname-regex.diff)
- Add support for useradd.local
  (useradd-script.diff)
- Fix spec file
- Adjust login.defs
  (shadow-login_defs.diff)
- Add userdel*.local script support and scrips
  (userdel-scripts.diff)
- Initial package [FATE#314473]

OBS-URL: https://build.opensuse.org/request/show/536398
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=23
2017-10-25 15:47:32 +00:00
e2885781a8 Use PreReq for permissions
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=44
2017-10-23 15:29:51 +00:00
01ba4a47d2 Accepting request 534237 from Base:System
- Revert accidentalied prerequisites.
- Prequire group(shadow), group(root), user(root)
- bsc#1061838:
  Add Requires for group(mail)

OBS-URL: https://build.opensuse.org/request/show/534237
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=22
2017-10-20 14:13:22 +00:00
2bfc1c3004 Accepting request 533974 from home:adamm:branches:Base:System
- Revert accidentalied prerequisites.

OBS-URL: https://build.opensuse.org/request/show/533974
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=42
2017-10-16 14:25:24 +00:00
786e66108a Accepting request 533614 from home:Andreas_Schwab:Factory
- Prequire group(shadow), group(root), user(root)

OBS-URL: https://build.opensuse.org/request/show/533614
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=41
2017-10-12 09:42:41 +00:00
56e78a5480 - bsc#1061838:
Add Requires for group(mail)

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=40
2017-10-09 18:40:05 +00:00
3200232fad Accepting request 526022 from Base:System
- boo#1048645:
  Set suid bit for newuidmap and newgimap
- Revert the changes for bsc#1023895 back
  Pulls in too many deps into ring0.
  Next version of shadow plans to have no conditional man pages.
- run spec-cleaner
- bsc#1023895:
  man page contained invalid options because they depend
  on compile flags and we shipped pre built ones.
  New BuildRequires: docbook-xsl-stylesheets docbook_4 xml2po
  xsltproc

OBS-URL: https://build.opensuse.org/request/show/526022
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=21
2017-09-15 19:02:48 +00:00
e81ef12b85 - boo#1048645:
Set suid bit for newuidmap and newgimap

- Revert the changes for bsc#1023895 back
  Pulls in too many deps into ring0.
  Next version of shadow plans to have no conditional man pages.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=38
2017-09-14 08:23:12 +00:00
e4491e0a36 Accepting request 522286 from home:jubalh:shadow-man
- run spec-cleaner
- bsc#1023895:
  man page contained invalid options because they depend
  on compile flags and we shipped pre built ones.
  New BuildRequires: docbook-xsl-stylesheets docbook_4 xml2po
  xsltproc

OBS-URL: https://build.opensuse.org/request/show/522286
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=37
2017-09-08 11:44:56 +00:00
d3bb8ce039 Accepting request 502707 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/502707
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=20
2017-06-23 07:13:27 +00:00
08c07eada1 Accepting request 502542 from home:kukuk:sysusers
- Adjust requires (we need user/group root instead of aaa_base now)

OBS-URL: https://build.opensuse.org/request/show/502542
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=35
2017-06-09 17:55:04 +00:00
b87ae2ad63 Accepting request 497756 from Base:System
- New upstream version 4.5
- Refreshed patches:
  * shadow-login_defs.patch
  * chkname-regex.patch
  * getdef-new-defs.patch
  * useradd-mkdirs.patch
- Upstreamed patches:
  * shadow-4.1.5.1-manfix.patch
  * shadow-4.1.5.1-errmsg.patch
  * shadow-4.1.5.1-backup-mode.patch
  * shadow-4.1.5.1-audit-owner.patch
  * shadow-4.2.1-defs-chroot.patch
  * shadow-4.2.1-merge-group.patch
  * Fix-user-busy-errors-at-userdel.patch
  * useradd-clear-tallylog.patch
- shadow-4.1.5.1-pam_group.patch
  dynamically added users via pam_group are not listed in groups
  databases but are still valid
- shadow.keyring: update keyring with current maintainer's keyid
  only - Serge Hallyn 'F1D08DB778185BF784002DFFE9FEEA06A85E3F9D'
- disable_new_audit_function.patch:
  Disable newer libaudit functionality for older distributions

OBS-URL: https://build.opensuse.org/request/show/497756
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=19
2017-06-02 08:29:42 +00:00
e5a3dd9ef7 Add new patch to .changes
- shadow-4.1.5.1-pam_group.patch
  dynamically added users via pam_group are not listed in groups
  databases but are still valid

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=33
2017-05-23 12:40:04 +00:00
4cea964109 Accepting request 497707 from home:adamm:branches:Base:System
- New upstream version 4.5
- Refreshed patches:
  * shadow-login_defs.patch
  * chkname-regex.patch
  * getdef-new-defs.patch
  * useradd-mkdirs.patch
- Upstreamed patches:
  * shadow-4.1.5.1-manfix.patch
  * shadow-4.1.5.1-errmsg.patch
  * shadow-4.1.5.1-backup-mode.patch
  * shadow-4.1.5.1-audit-owner.patch
  * shadow-4.2.1-defs-chroot.patch
  * shadow-4.2.1-merge-group.patch
  * Fix-user-busy-errors-at-userdel.patch
  * useradd-clear-tallylog.patch
- shadow.keyring: update keyring with current maintainer's keyid
  only - Serge Hallyn 'F1D08DB778185BF784002DFFE9FEEA06A85E3F9D'
- disable_new_audit_function.patch:
  Disable newer libaudit functionality for older distributions

OBS-URL: https://build.opensuse.org/request/show/497707
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=32
2017-05-23 12:25:13 +00:00
15a8410ab2 Accepting request 459646 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/459646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=18
2017-03-05 16:48:33 +00:00
94b8c653f8 Accepting request 459155 from home:jmoellers:branches:Base:System
OBS-URL: https://build.opensuse.org/request/show/459155
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=30
2017-02-22 10:32:41 +00:00
9628dd278f Accepting request 438228 from Base:System
- add keyring, three public keys from https://pkg-shadow.alioth.debian.org/download.php

OBS-URL: https://build.opensuse.org/request/show/438228
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=17
2016-11-04 19:49:38 +00:00
7832b33bde - add keyring, three public keys from https://pkg-shadow.alioth.debian.org/download.php
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=28
2016-11-02 07:48:48 +00:00
ea3ed2beb9 Accepting request 436107 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/436107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=16
2016-10-23 10:49:51 +00:00
cd6ec5b6e3 Accepting request 436106 from home:jubalh:branches:Base:System
OBS-URL: https://build.opensuse.org/request/show/436106
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=26
2016-10-19 09:17:17 +00:00
20577f7f48 Accepting request 427510 from Base:System
OBS-URL: https://build.opensuse.org/request/show/427510
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=15
2016-09-17 12:32:42 +00:00
3eb2c8c563 - boo#994486: Include shadow.5 manpage
Previously this was provided by man-pages package in
  the man-pages-addons tarball which got removed later on.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=25
2016-09-14 07:50:02 +00:00
974d43b11f Accepting request 400383 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/400383
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=14
2016-07-03 10:18:20 +00:00
8017d9a3de - Add package dependency for aaa_base, fixing bnc#899409
(was done by tbehrens@suse.com but not submitted to Factory)

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=23
2016-05-31 06:53:18 +00:00
be3678aaf0 - shadow 4.2.1 requested by fate#320422
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=22
2016-05-30 11:56:16 +00:00
b4a2128e54 Accepting request 398913 from home:jubalh
OBS-URL: https://build.opensuse.org/request/show/398913
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=21
2016-05-30 10:38:25 +00:00
3a6055b4e7 Accepting request 354525 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/354525
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=13
2016-01-26 09:14:17 +00:00
5d813f9f9f Accepting request 353848 from home:favogt:branches:Base:System
Moved call from %verifyscript into %post:
 * Caused call to %service_add_post shadow.service shadow.timer during rpm -qV shadow

OBS-URL: https://build.opensuse.org/request/show/353848
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=19
2016-01-18 11:08:55 +00:00
Stephan Kulow
ddb1a079f9 Accepting request 317069 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/317069
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=12
2015-07-21 11:25:20 +00:00
bac7fc27fa Accepting request 316943 from home:jkeil:branches:Base:System
- Add systemd unit files to continuously check password & groupfile integrity
  * Idea from Arch Linux
  * pending request to systemd-presets-branding-openSUSE to enable by default

OBS-URL: https://build.opensuse.org/request/show/316943
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=17
2015-07-16 09:52:01 +00:00
Stephan Kulow
02ef96ded8 Accepting request 228509 from Base:System
- Add patch useradd-mkdirs.diff: fix for bnc#865563, create all parts
  of the path (forwarded request 228508 from netsroth)

OBS-URL: https://build.opensuse.org/request/show/228509
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=10
2014-04-06 07:54:11 +00:00
Thorsten Behrens
c2bce11198 Accepting request 228508 from home:netsroth:branches:Base:System
- Add patch useradd-mkdirs.diff: fix for bnc#865563, create all parts
  of the path

OBS-URL: https://build.opensuse.org/request/show/228508
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=15
2014-04-01 15:44:20 +00:00
Stephan Kulow
634dd6efcb Accepting request 207925 from Base:System
- Stop any systemd user manager instance in case a user entry will
  be deleted (bnc#849870).  Nevertheless a running process requires
  the option --force for the userdel command.

OBS-URL: https://build.opensuse.org/request/show/207925
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=9
2013-12-13 11:01:07 +00:00
70307c69f1 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=13
2013-11-22 10:17:20 +00:00
Stephan Kulow
213ce4aefe Accepting request 206650 from Base:System
- Add ENCRYPT_METHOD_NIS for pam_unix.so (encryption_method_nis.diff)

OBS-URL: https://build.opensuse.org/request/show/206650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=8
2013-11-12 15:36:51 +00:00
d4599e2085 - Add ENCRYPT_METHOD_NIS for pam_unix.so (encryption_method_nis.diff)
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=11
2013-11-12 13:47:56 +00:00
Stephan Kulow
df842bb027 Accepting request 199398 from Base:System
- Add some fixes from Fedora:
  - shadow-4.1.5.1-backup-mode.patch: open backup file with correct
    permissions.
  - shadow-4.1.5.1-logmsg.patch: fix error message
  - shadow-4.1.5.1-errmsg.patch: print error reason
  - shadow-4.1.5.1-manfix.patch: fix manual page

OBS-URL: https://build.opensuse.org/request/show/199398
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=6
2013-09-17 14:19:10 +00:00
214efedae2 - Add some fixes from Fedora:
- shadow-4.1.5.1-backup-mode.patch: open backup file with correct
    permissions.
  - shadow-4.1.5.1-logmsg.patch: fix error message
  - shadow-4.1.5.1-errmsg.patch: print error reason
  - shadow-4.1.5.1-manfix.patch: fix manual page

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=9
2013-09-17 12:59:36 +00:00
Stephan Kulow
195844b0ad Accepting request 151269 from Base:System
- Cleanup login.defs and enable ENCRYPT_METHOD [bnc#802006]

OBS-URL: https://build.opensuse.org/request/show/151269
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=5
2013-02-05 14:46:33 +00:00
ca9b3f1aab - Cleanup login.defs and enable ENCRYPT_METHOD [bnc#802006]
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=7
2013-02-05 12:20:33 +00:00
Stephan Kulow
0a59f5fc14 Accepting request 141188 from Base:System
- Fix getdef default variables (getdef-new-defs.diff)

OBS-URL: https://build.opensuse.org/request/show/141188
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=3
2012-11-14 16:02:21 +00:00
c2ed51b410 - Fix getdef default variables (getdef-new-defs.diff)
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=5
2012-11-13 16:35:05 +00:00
Stephan Kulow
a9fc4f77e8 Accepting request 141094 from Base:System
- Fix default group value in /etc/default/useradd 
  (useradd-default.diff)

OBS-URL: https://build.opensuse.org/request/show/141094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=2
2012-11-13 16:10:27 +00:00
5eb07eefb8 - Fix default group value in /etc/default/useradd
(useradd-default.diff)

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=3
2012-11-13 09:36:56 +00:00
Stephan Kulow
f1d2b7ec38 Accepting request 139684 from Base:System
FATE#314473: Replace pwdutils with shadow utilities

OBS-URL: https://build.opensuse.org/request/show/139684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=1
2012-11-08 06:55:56 +00:00
37abeb5bf8 Accepting request 139680 from home:kukuk
FATE#314473: Replace pwdutils with shadow utilities

OBS-URL: https://build.opensuse.org/request/show/139680
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=1
2012-10-29 15:15:23 +00:00
9 changed files with 268 additions and 40 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b78e3921a95d53282a38e90628880624736bf6235e36eea50c50835f59a3530b
size 2204832

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEflbiwT+nfOMVWa3JfcJMNsM0HSAFAmZyBfQACgkQfcJMNsM0
HSA4PxAA57RSvccAbXTTmp2sHMZVPbzizydThuGgqY/4F9egRvywUUlNy0vz/QAA
e0u8ja+paKhLjXg4HvA/Ejy+gtAE5NuvNCr/ihL8Xii6s/GH6OaW8EDcL0509j7L
PchWYkHYSqwdqdjLoy6NroaaEEllAzVEeNp2UzN9F7jllteF8gDjqY2j8SLqrkmm
Xb15kzk6mbqk5BxAOoZmgoRRDw+YRCBA2EzN0ztwR0h1rjwoCjebQk3E/qV+fM1t
pKKYVTnLRmb9E2tvPR1Oibzercisi/+6Z7br+Xh1Gz/mfZ++4CiOQrJndUTBj9zU
v7GEHMEdV8qz/Qzvh1eyxA7KX5zZqbXT3I/+kRvX01CJtI64MVdEOOqSeup794fr
QlaptfoAfe+ZS6exe1SwY2tZkoX4qXeeUNQXRBo8GJlG9auMA46U2CjtRGgyK6BK
cf/YkzUr9aTWExL3d2tZJzvEX80AHSR+MF2kW8UzIQI8hch1Pncp8an6NfLFbmsl
nyz5+GqrSuc1gNe7wnz5Lkxk3q4epmvdPcyrb16XDr42k3dP0IWZE50c8Caf05Nq
9zJC+It75nX7PFbGcZnNgE6sjsc6MB28O2wUb4Z51IU+s8hzthk2P4v0gq30TgrZ
vKTXxIYwp+yLii1sSTWUdE8a6vNK93cQki5uuB3R6VeNVBMZJA0=
=bB1D
-----END PGP SIGNATURE-----

3
shadow-4.18.0.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:add4604d3bc410344433122a819ee4154b79dd8316a56298c60417e637c07608
size 2347912

11
shadow-4.18.0.tar.xz.asc Normal file
View File

@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEqb0/8XByttt4D8+UNXDaFycKziQFAmhbDFQACgkQNXDaFycK
ziQBNQgAzFSwyCM6MpR9au15EeF3dw0auq6iI9ibL2ZLfZQII+tT0Mzv+LY5ioLR
qf4DVDqCyZWz3FMfmM93aXtKg+Vb8ukkhmhIFmWZjJDb2yZIh4bQOo+rVlQa+GBk
kCMftuNPE/58AhH030nt917EXE6Yz4JkyX0UDcJkqWKdTPWfl9OjHQfiFXuGHlsr
HJT4OVZSkAOKtZtKvjqD00dEvSsQ0GpeCTLgtQ2RgWS1Sfwvmrsc2nIHQXhkWmKx
sTfhiHGL10v9rDHgtK3KccdfkqtSdPqDDO6T0DQVg0gwqawB7b0WhixVqrGxGAfh
aOVD1Sy9qcQlSBT8kJIuXyAotTB75w==
=FJBB
-----END PGP SIGNATURE-----

View File

@@ -33,14 +33,18 @@ if ! test -f openSUSE:Factory/util-linux/BUILD/*/configure.ac ; then
osc co openSUSE:Factory util-linux osc co openSUSE:Factory util-linux
fi fi
cd openSUSE:Factory/util-linux cd openSUSE:Factory/util-linux
# BEGIN HACK
# quilt does not understand our util-linux.spec.
sed -i s/@BUILD_FLAVOR@// util-linux.spec
# END HACK
quilt setup -d BUILD util-linux.spec quilt setup -d BUILD util-linux.spec
cd BUILD/* cd $(ls -1d BUILD/* | sed /SPECPARTS/d)
quilt push -a quilt push -a
cd ../../../.. cd ../../../..
fi fi
echo "Extracting variables from util-linux..." echo "Extracting variables from util-linux..."
cd openSUSE:Factory/util-linux/BUILD/* cd $(ls -1d openSUSE:Factory/util-linux/BUILD/* | sed /SPECPARTS/d)
( (
grep -rh getlogindefs . | grep -rh getlogindefs . |
sed -n 's/^.*getlogindefs[a-z_]*("\([A-Z0-9_]*\)".*$/\1/p' sed -n 's/^.*getlogindefs[a-z_]*("\([A-Z0-9_]*\)".*$/\1/p'
@@ -68,13 +72,13 @@ if ! test -f openSUSE:Factory/pam/BUILD/*/configure.ac ; then
fi fi
cd openSUSE:Factory/pam cd openSUSE:Factory/pam
quilt setup -d BUILD pam.spec quilt setup -d BUILD pam.spec
cd BUILD/* cd $(ls -1d BUILD/* | sed /SPECPARTS/d)
quilt push -a quilt push -a
cd ../../../.. cd ../../../..
fi fi
echo "Extracting variables from pam..." echo "Extracting variables from pam..."
cd openSUSE:Factory/pam/BUILD/* cd $(ls -1d openSUSE:Factory/pam/BUILD/* | sed /SPECPARTS/d)
grep -rh LOGIN_DEFS . | grep -rh LOGIN_DEFS . |
sed -n 's/CRYPTO_KEY/\"HMAC_CRYPTO_ALGO\"/g;s/^.*search_key *([A-Za-z_]*, *[A-Z_]*LOGIN_DEFS, *"\([A-Z0-9_]*\)").*$/\1/p' | sed -n 's/CRYPTO_KEY/\"HMAC_CRYPTO_ALGO\"/g;s/^.*search_key *([A-Za-z_]*, *[A-Z_]*LOGIN_DEFS, *"\([A-Z0-9_]*\)").*$/\1/p' |
LC_ALL=C sort -u >../../../../shadow-login_defs-check-pam.lst LC_ALL=C sort -u >../../../../shadow-login_defs-check-pam.lst

View File

@@ -82,7 +82,7 @@ Index: etc/login.defs
# System accounts # System accounts
-SYS_UID_MIN 101 -SYS_UID_MIN 101
-SYS_UID_MAX 999 -SYS_UID_MAX 999
+SYS_UID_MIN 100 +SYS_UID_MIN 201
+SYS_UID_MAX 499 +SYS_UID_MAX 499
# Extra per user uids # Extra per user uids
SUB_UID_MIN 100000 SUB_UID_MIN 100000
@@ -93,7 +93,7 @@ Index: etc/login.defs
# System accounts # System accounts
-SYS_GID_MIN 101 -SYS_GID_MIN 101
-SYS_GID_MAX 999 -SYS_GID_MAX 999
+SYS_GID_MIN 100 +SYS_GID_MIN 201
+SYS_GID_MAX 499 +SYS_GID_MAX 499
# Extra per user group ids # Extra per user group ids
SUB_GID_MIN 100000 SUB_GID_MIN 100000

View File

@@ -122,7 +122,7 @@ Index: etc/login.defs
# Max time in seconds for login(1) # Max time in seconds for login(1)
# #
LOGIN_TIMEOUT 60 LOGIN_TIMEOUT 60
@@ -315,14 +335,6 @@ CHARACTER_CLASS [ABCDEFGHIJKLMNO @@ -285,14 +305,6 @@ USERGROUPS_ENAB yes
#GRANT_AUX_GROUP_SUBIDS yes #GRANT_AUX_GROUP_SUBIDS yes
# #
@@ -137,3 +137,14 @@ Index: etc/login.defs
# Select the HMAC cryptography algorithm. # Select the HMAC cryptography algorithm.
# Used in pam_timestamp module to calculate the keyed-hash message # Used in pam_timestamp module to calculate the keyed-hash message
# authentication code. # authentication code.
@@ -301,3 +313,10 @@ PREVENT_NO_AUTH superuser
# that are available in your system.
#
#HMAC_CRYPTO_ALGO SHA512
+
+# Forces login to protect the specified environment variables if -p is not
+# used. The string value is a comma-separated list of variable names. For
+# example: "LANG,LC_MESSAGES,LC_COLLATE". The safelist is ignored for the
+# environment variables HOME, SHELL and USER.
+#LOGIN_ENV_SAFELIST
+

View File

@@ -1,3 +1,230 @@
-------------------------------------------------------------------
Wed Jun 25 04:20:14 UTC 2025 - Michael Vetter <mvetter@suse.com>
- Update to 4.18.0:
* CI: purge man-db #1241
* passwd: document exit code when PAM has errored #1244
* Man patches #1175
* Quick fix: define E_PAM_ERR in lib/pam_pass.c #1245
* Accept /usr/sbin/nologin as an alternate to /sbin/nologin #1246
* Add LOGIN_ENV_SAFELIST to FOREIGNDEFS #1248
* ci: add gawk as a fedora dependency #1252
* man/useradd.8.xml: fix the CREATE_HOME description #1251
* lib/getdate.y: Restrict the date formats that we support #1238
* newuidmap: better error logging on failure #1254
* Extend basic test cases to check shadow and gshadow entries #1237
* lib/sizeof.h: Make sure STRLEN() only accepts string literals #1260
* Add strprefix(), and use it instead of its pattern #1152
* src/: Simplify, using strpbrk(3) #1167
* lib/string/strdup/: STRNDUPA(): Reimplement in terms of strndupa(3) #1189
* Remove dead beef #1230
* lib/atoi/a2i/: Simplify these macros #1137
* strtolower(): Add API, and use it instead of its pattern #1211
* lib/: sget*ent(): Simplify #1146
* fields #1150
* yacc(1) is a dead language; bury it deep in the ground #1217
* Test expiration date #1233
* [scp] Add strcaseprefix(), and use it instead of its pattern #1262
* valid_field(): Improve readability #1208
* lib/, src/, tests/: Use the standard countof() instead of our NITEMS() #1259
* lib/fs/mkstemp/, src/: Move fmkomstemp() to separate files under
lib/fs/mkstemp/, and split into mkomstemp() #1139
* [x][v]aprintf(): Add APIs, and use them instead of [x][v]asprintf(3) #1168
* lib/get_pid.c: pid_t is a signed integer #1264
* src/newusers.c: Fix off-by-one benign bug in array declaration #1266
* Add some wrappers for usual loops around strsep(3) #1155
* lib/fs/readlink/areadlink.h: areadlink(): Avoid inconditionally using PATH_MAX #1222
* configure: Fix typo #1268
* Pre-release 4.18.0-rc1 #1270
* Update man pages for chage, shadow, passwd #1243
* contrib/: Burn it all #1274
* Pre-release 4.18.0-rc2 #1275
* Release 4.18.0 #1277
- Update shadow-util-linux.patch: See #1248
-------------------------------------------------------------------
Wed Apr 9 00:05:49 UTC 2025 - Stanislav Brabec <sbrabec@suse.com>
- shadow-util-linux.patch: util-linux-2.41 introduced new variable:
LOGIN_ENV_SAFELIST. Recognize it and update dependencies. The
patch includes gh/shadow-maint/shadow/pull#1248.
- shadow-login_defs-check-login_defs.lst: Make the util-linux.spec
multibuild file compatible with quilt. Make it working with new
quilt.
-------------------------------------------------------------------
Thu Mar 20 06:48:16 UTC 2025 - Michael Vetter <mvetter@suse.com>
- Update to 4.17.4:
* Revert "lib/, src/: Use local time for human-readable dates"
* lib/getdate.y: Ignore time-zone information and use UTC
* src/chfn.c: Partially revert "lib/, src/: Use strsep(3) instead of its pattern"
* src/chfn.c: Use stpsep() instead of its pattern
* src/chfn.c: Add local variable to refer to the separated field
* src/chfn.c: copy_field(): Rename local variable
* lib/commonio.c: Rely on the POSIX.1-2008 behavior of realpath(3)
* lib/fs/readlink/: readlinknul(): Use ssize_t to simplify
* autogen.sh: Promote -Wsign-compare to an error
* lib/sizeof.h: ssizeof(): Add signed variant of sizeof
* src/lastlog.c: Use ssizeof() to avoid a -Wsign-compare diagnostic
* tests/unit/test_xasprintf.c: Fix sign-mismatch diagnostic
* configure.ac: stop checking for utmp location
* configure.ac: be deterministic about passwd location
* lib/, src/: update audit messages
* lib/: audit function for groups
* src/: update group audit messages
* doc/: Remove list of distributions
-------------------------------------------------------------------
Mon Feb 24 15:52:45 UTC 2025 - Michael Vetter <mvetter@suse.com>
- Update to 4.17.3:
* chsh: do not warn about blank shell
* lib/: Use strisdigit() instead of its pattern
* lib/string/ctype/strisascii/: strisdigit(): Add function
* lib/string/: Add comments expanding the letter-soup API names
* lib/basename.c: Basename(): Use stprcspn() instead of its pattern
* lib/string/strspn/, lib/, src/: stprspn(), strrspn_(): Split API into function and macro
* lib/string/strspn/, lib/, src/: Move *spn() APIs to separate subdir
* lib/string/strchr/: strrcspn(), stprcspn(): Add function and macro
* src/useradd.c: Use !strcaseeq() instead of its pattern
* lib/, src/: Use strcaseeq() instead of its pattern
* lib/string/strcmp/: strcaseeq(): Add function
* man/useradd.8.xml: Document new exit code 19 (E_BAD_NAME)
* src/useradd.c: E_BAD_NAME: Use a different error code for bad login names
* src/useradd.c: create_home(): Use !streq() instead of its pattern
* lib/chkname.c: is_valid_name(): Use streq() instead of its pattern
* configure.ac, lib/: Use __has_include(<gshadow.h>) instead of HAVE_GSHADOW_H
* configure.ac: Remove unused AC_CHECK_HEADERS() checks
* configure.ac, lib/: Use __has_include(<sys/capability.h>) instead of HAVE_SYS_CAPABILITY_H
* lib/idmapping.c: Unconditionally include <sys/prctl.h>
* lib/: Use __has_include(<security/openpam.h>) instead of HAVE_SECURITY_OPENPAM_H
* lib/: Use __has_include(<security/pam_misc.h>) instead of HAVE_SECURITY_PAM_MISC_H
* configure.ac, lib/: Use __has_include(<sys/random.h>) instead of HAVE_SYS_RANDOM_H
* configure.ac, lib/: Use __has_include(<crypt.h>) instead of HAVE_CRYPT_H
* lib/, src/: motd(): Report errors instead of exiting from library code
* lib/motd.c: motd(): Invert logic to reduce indentation
* lib/, src/, doc/: Remove pw_auth()'s $3 as dead code
* lib/pwauth.*: PW_{ADD,CHANGE,DELETE,FTP,REXEC}: Remove dead code
* lib/, src/, doc/: Remove dead code
* src/vipw.c: Restore the original terminal pgrp after editing
* lib/, src/: Use agetgroups() instead of its pattern
* lib/shadow/grp/: agetgroups(): Add function
* configure.ac, lib/, src/: Use gid_t instead of GETGROUPS_T
* lib/adds.h: addslN(): Use QSORT() instead of its pattern
* lib/search/sort/: QSORT(): Add macro
* lib/addgrps.c: add_groups(): Remove arbitrary limit
* lib/, src/: Rename variables
* lib/addgrps.c: add_groups(): Reallocate at once
* lib/string/strchr/: strchrscnt(): Add function
* lib/addgrps.c: add_groups(): Split variable to avoid sign-mismatch diagnostics
* lib/, src/: Use LSEARCH() instead of its pattern
* lib/search/l/: LSEARCH(): Add macro
* lib/, src/: Replace redundant checks by actual error handling
* lib/, src/: Unconditionally call setgroups(2)
* lib/addgrps.c: add_groups(): Simplify redundant code with a goto
* lib/addgrps.c: add_groups(): Allocate earlier
* lib/addgrps.c: add_groups(): Remove useless cast
* lib/, src/: Use LFIND() instead of open-coded search loops
* lib/search/l/: LFIND(): Add macro
* lib/search/cmp/, lib/, tests/: CMP(), cmp_*(): Add macro and functions
* lib/, src/: Simplify allocation of buffer
* lib/, src/: Un-spageticize code
* lib/, src/: Reduce scope of variables
* lib/gshadow_.h: Fix compatibility with libc's struct sgrp
* configure.ac, lib/gshadow.c: Presume working shadow group support in libc
* lib/: Include <gshadow.h> if it's available
* configure.ac, lib/: Assume initgroups(3) exists
* configure.ac, lib/, src/: Assume setgroups(2) exists
* lib/, src/: Turn error counters into flags
* src/gpasswd: Use correct preprocessor definition
* src/gpasswd: Clear password in more cases
* lib/encrypt.c: Do not exit in error case
* man/useradd.8.xml: wfix
* src/login_nopam.c: list_match(): Use iteration instead of recursion
* src/login_nopam.c: list_match(): Remove local variable
* src/login_nopam.c: list_match(): Move code around
* src/login_nopam.c: list_match(): '(match)' is always true here
* src/login_nopam.c: list_match(): Add superfluous else
* src/login_nopam.c: list_match(): Refactor conditional
* man/passwd.1.xml: -P disables PAM support
* chage: Drop PAM support
* src/newusers.c: Turn nusers into size_t
* src/: Make line number overflows less likely
* man/: Install suauth.5 only if feature exists
* add and use a login.defs.test with CREATE_HOME set
* Revert "etc/login.defs: enable CREATE_HOME"
* etc/login.defs: enable CREATE_HOME
* Tests: implement system test framework
-------------------------------------------------------------------
Mon Jan 20 10:20:31 UTC 2025 - Michael Vetter <mvetter@suse.com>
- bsc#1235453: Set SYS_{UID,GID}_MIN to 201:
After repeated similar requests to change the ID ranges we set the
above mentioned value to 201. The max value will stay at 499.
This range should be sufficient and will give us leeway for the
future.
It's not straightforward to find out which static UIDs/GIDs are
used in all packages.
Update shadow-login_defs-suse.patch
-------------------------------------------------------------------
Sat Jan 11 16:37:07 UTC 2025 - Michael Vetter <mvetter@suse.com>
- Update to 4.17.2:
* src/login_nopam.c: Fix compiler warnings #1170
* lib/chkname.c: Put limits for LOGIN_NAME_MAX and sysconf(_SC_LOGIN_NAME_MAX) #1169
* Use HTTPS in link to Wikipedia article on password strength #1164
* lib/attr.h: use C23 attributes only with gcc >= 10 #1172
* login: Fix no-pam authorization regression #1174
* man: Add Portuguese translation #1178
* Update French translation #1177
* Add cheap defense mechanisms #1171
* Add Romanian translation #1176
-------------------------------------------------------------------
Tue Dec 31 19:41:57 UTC 2024 - Michael Vetter <mvetter@suse.com>
- Update to 4.17.1:
* Fix `su -` regression #1163
-------------------------------------------------------------------
Fri Dec 27 16:06:45 UTC 2024 - Michael Vetter <mvetter@suse.com>
- Update to 4.17.0:
* Fix the lower part of the domain of csrand_uniform()
* Fix use of volatile pointer
* Use 'dist-hook' to clean up <tests/unit/Makefile>
* Use str2[u]l() instead of atoi(3)
* Use a2i() in various places
* Fix const correctness
* Use uid_t for holding UIDs (and GIDs)
* Move all sprintf(3)-like APIs to a subdirectory
* Move all copying APIs to a subdirectory
* Fix forever loop on ENOMEM
* Fix REALLOC() nmemb calculation
* Remove id(1)
* Remove groups(1)
* Use local time for human-readable dates
* Use %F instead of %Y-%m-%d with strftime(3)
* is_valid{user,group}_name(): Set errno to distinguish the reasons
* Recommend --badname only if it is useful
* Add fmkomstemp() to fix mode of </etc/default/useradd>
* Fix use-after-free bug in sgetgrent()
* Update Catalan translation
* Remove references to cppw, cpgr
* groupadd, groupmod: Update gshadow file with -U
* Added option -a for listing active users only, optimized using if aflg,return
* Added information in lastlog man page for new option '-a'
* Plenty of code cleanup and clarifications
-------------------------------------------------------------------
Fri Dec 6 08:56:10 UTC 2024 - Michael Vetter <mvetter@suse.com>
- Update to 4.17.0 RC1:
Pre-release without changelog
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 8 11:13:17 UTC 2024 - Samuel Cabrero <scabrero@suse.de> Mon Jul 8 11:13:17 UTC 2024 - Samuel Cabrero <scabrero@suse.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package shadow # spec file for package shadow
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
%define no_config 1 %define no_config 1
%endif %endif
Name: shadow Name: shadow
Version: 4.16.0 Version: 4.18.0
Release: 0 Release: 0
Summary: Utilities to Manage User and Group Accounts Summary: Utilities to Manage User and Group Accounts
License: BSD-3-Clause AND GPL-2.0-or-later License: BSD-3-Clause AND GPL-2.0-or-later
@@ -84,7 +84,7 @@ Summary: The login.defs configuration file
# Call shadow-login_defs-check.sh before! # Call shadow-login_defs-check.sh before!
Group: System/Base Group: System/Base
Provides: login_defs-support-for-pam = 1.5.2 Provides: login_defs-support-for-pam = 1.5.2
Provides: login_defs-support-for-util-linux = 2.37 Provides: login_defs-support-for-util-linux = 2.41
BuildArch: noarch BuildArch: noarch
%description -n login_defs %description -n login_defs
@@ -158,11 +158,6 @@ install -Dm644 %{SOURCE5} %{buildroot}%{_unitdir}/shadow.timer
touch %{buildroot}/%{_sysconfdir}/subuid touch %{buildroot}/%{_sysconfdir}/subuid
touch %{buildroot}/%{_sysconfdir}/subgid touch %{buildroot}/%{_sysconfdir}/subgid
# Remove binaries we don't use.
rm %{buildroot}/%{_bindir}/groups
rm %{buildroot}/%{_mandir}/man1/groups.*
rm %{buildroot}/%{_mandir}/*/man1/groups.*
rm %{buildroot}/%{_sbindir}/grpconv rm %{buildroot}/%{_sbindir}/grpconv
rm %{buildroot}/%{_mandir}/man8/grpconv.* rm %{buildroot}/%{_mandir}/man8/grpconv.*
rm %{buildroot}/%{_mandir}/*/man8/grpconv.* rm %{buildroot}/%{_mandir}/*/man8/grpconv.*
@@ -183,8 +178,6 @@ rm %{buildroot}%{_sysconfdir}/pam.d/login
rm %{buildroot}/%{_bindir}/su rm %{buildroot}/%{_bindir}/su
rm %{buildroot}/%{_mandir}/man1/su.* rm %{buildroot}/%{_mandir}/man1/su.*
rm %{buildroot}/%{_mandir}/*/man1/su.* rm %{buildroot}/%{_mandir}/*/man1/su.*
rm %{buildroot}/%{_mandir}/man5/suauth.*
rm %{buildroot}/%{_mandir}/*/man5/suauth.*
rm %{buildroot}%{_sysconfdir}/pam.d/su rm %{buildroot}%{_sysconfdir}/pam.d/su
rm %{buildroot}/%{_bindir}/faillog rm %{buildroot}/%{_bindir}/faillog
@@ -229,7 +222,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/login.defs.d
%pre %pre
%service_add_pre shadow.service shadow.timer %service_add_pre shadow.service shadow.timer
for i in pam.d/chage pam.d/chfn pam.d/chpasswd pam.d/chsh pam.d/groupadd pam.d/groupdel pam.d/groupmod pam.d/newusers pam.d/passwd pam.d/useradd pam.d/userdel pam.d/usermod; do for i in pam.d/chfn pam.d/chpasswd pam.d/chsh pam.d/groupadd pam.d/groupdel pam.d/groupmod pam.d/newusers pam.d/passwd pam.d/useradd pam.d/userdel pam.d/usermod; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||: test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
done done
@@ -269,7 +262,7 @@ test -f %{_sysconfdir}/login.defs.rpmsave && mv -v %{_sysconfdir}/login.defs.rpm
%posttrans %posttrans
%if %{defined no_config} %if %{defined no_config}
# Migration to /usr/etc # Migration to /usr/etc
for i in pam.d/chage pam.d/chfn pam.d/chpasswd pam.d/chsh pam.d/groupadd pam.d/groupdel pam.d/groupmod pam.d/newusers pam.d/passwd pam.d/useradd pam.d/userdel pam.d/usermod; do for i in pam.d/chfn pam.d/chpasswd pam.d/chsh pam.d/groupadd pam.d/groupdel pam.d/groupmod pam.d/newusers pam.d/passwd pam.d/useradd pam.d/userdel pam.d/usermod; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||: test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
done done
%endif %endif
@@ -289,7 +282,6 @@ test -f %{_sysconfdir}/login.defs.rpmsave && mv -v %{_sysconfdir}/login.defs.rpm
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/subuid %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/subuid
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/subgid %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/subgid
%if %{defined no_config} %if %{defined no_config}
%{_pam_vendordir}/chage
%{_pam_vendordir}/chfn %{_pam_vendordir}/chfn
%{_pam_vendordir}/chsh %{_pam_vendordir}/chsh
%{_pam_vendordir}/passwd %{_pam_vendordir}/passwd
@@ -302,7 +294,6 @@ test -f %{_sysconfdir}/login.defs.rpmsave && mv -v %{_sysconfdir}/login.defs.rpm
%{_pam_vendordir}/userdel %{_pam_vendordir}/userdel
%{_pam_vendordir}/usermod %{_pam_vendordir}/usermod
%else %else
%config %{_sysconfdir}/pam.d/chage
%config %{_sysconfdir}/pam.d/chfn %config %{_sysconfdir}/pam.d/chfn
%config %{_sysconfdir}/pam.d/chsh %config %{_sysconfdir}/pam.d/chsh
%config %{_sysconfdir}/pam.d/passwd %config %{_sysconfdir}/pam.d/passwd