Go to file
Tobias Stoeckmann 929e61d604 lib/idmapping.c: Fix get_map_ranges range check
The get_map_ranges function shall support the whole accepted range
as specified in user_namespaces(7), i.e. upper and lower from 0 to
UINT_MAX - 1 as well as range from 1 to UINT_MAX. The actual limit of
range depends on values of upper and lower and adding the range
to either upper or lower shall never overflow UINT_MAX.

Fixes: 7c43eb2c4e (2024-07-11, "lib/idmapping.c: get_map_ranges(): Move range check to a2ul() call")
Fixes: ff2baed5db (2016-08-14, "idmapping: add more checks for overflow")
Fixes: 94da3dc5c8 (2016-08-14, "also check upper for wrap")
Fixes: 7f5a14817d (2016-07-31, "get_map_ranges: check for overflow")
Co-authored-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2024-11-13 18:17:03 +01:00
.github CI: fix handling of sources.list 2024-10-31 09:46:51 +01:00
contrib contrib/adduser.c: main(): Use strcpy/cat(3) instead of their pattern 2024-07-03 10:03:12 -05:00
doc doc/contributions/introduction.md: Fix typo in link 2024-10-17 17:09:26 +02:00
etc etc/pam.d/Makefile.am: Fix typo 2024-02-13 18:45:04 +01:00
keys Add keys/ directory with public keys for maintainers 2023-10-26 22:31:27 -05:00
lib lib/idmapping.c: Fix get_map_ranges range check 2024-11-13 18:17:03 +01:00
libsubid lib/, libsubid/, po/, src/: get_gid(): Move function to "atoi/getnum.h" 2024-06-29 20:00:18 +02:00
man man/shadow,man/gshadow: Fix grammar 2024-11-04 14:17:49 +01:00
po po/es.po: wsfix 2024-08-22 22:51:57 -05:00
share CI: fix fedora build problems 2024-10-31 09:52:54 -05:00
src lib/, src/: Use NULL instead of 0 as a null pointer constant 2024-11-13 09:44:54 -06:00
tests Remove references to cppw, cpgr 2024-08-12 10:08:45 +02:00
.editorconfig Add .editorconfig 2023-03-02 16:33:06 -06:00
.gitignore Makefile.am: clean some tempfiles 2024-03-23 16:39:07 -05:00
acinclude.m4 configure: replace obsolete autoconf macros 2022-05-10 09:55:18 +02:00
AUTHORS.md AUTHORS.md: Format list 2024-02-06 16:16:32 +01:00
autogen.sh autogen.sh: CFLAGS: Use -Wno-unknown-attributes; Clang doesn't know [[gnu::access()]] 2024-01-26 09:40:10 +01:00
ChangeLog fix typos 2023-04-26 17:35:58 -05:00
configure.ac Fix typos 2024-09-13 22:27:08 +02:00
COPYING Update licensing info 2021-12-23 19:36:50 -06:00
Makefile.am Makefile.am: avoid warning: EXTRA_DIST multiply defined 2024-07-18 09:21:57 -05:00
NEWS fix typos 2023-04-26 17:35:58 -05:00
README Add README as symlink to README.md 2021-12-19 14:09:08 -06:00
README.md README.md, STABLE.md: record the stable branch URL(s). 2023-11-17 09:49:15 -06:00
SECURITY.md SECURITY.md: add Iker Pedrosa 2023-03-20 10:54:45 -05:00
STABLE.md STABLE.md: 4.15.x is now stable 2024-05-22 15:10:03 +02:00

shadow-utils

Introduction

The shadow-utils package includes the necessary programs for converting UNIX password files to the shadow password format, plus programs for managing user and group accounts. The pwconv command converts passwords to the shadow password format. The pwunconv command unconverts shadow passwords and generates a passwd file (a standard UNIX password file). The pwck command checks the integrity of password and shadow files. The lastlog command prints out the last login times for all users. The useradd, userdel, and usermod commands are used for managing user accounts. The groupadd, groupdel, and groupmod commands are used for managing group accounts.

Sites

Code

The main development branch is at https://github.com/shadow-maint/shadow.git

See STABLE.md for a list of supported stable branches.

Contacts

There are several ways to contact us:

Mailing archives

Contributions

Contributions are welcome. Follow the guidelines before posting any patches.

Authors and maintainers

Authors and maintainers are listed in AUTHORS.md.