]>
git.ipfire.org Git - thirdparty/shadow.git/log
ed neville [Wed, 12 Aug 2020 16:53:28 +0000 (17:53 +0100)]
Removing trailing n typo
Signed-off-by: ed neville <ed@s5h.net>
Serge Hallyn [Tue, 11 Aug 2020 18:58:22 +0000 (13:58 -0500)]
Merge pull request #263 from edneville/261_grpck_questionable_warning
Option to suppress group/gshadow inconsistencies
ed neville [Sat, 13 Jun 2020 08:02:32 +0000 (09:02 +0100)]
Option to suppress group/gshadow inconsistencies
'gshadow' man page suggests that "You should use the same list of users
as in /etc/group", but not must.
Closes #261
Serge Hallyn [Tue, 11 Aug 2020 01:34:50 +0000 (20:34 -0500)]
Merge pull request #270 from darktemplarbasealt/fix_resource_leak
Fix potential resource leak in set_selinux_file_context function
Serge Hallyn [Mon, 10 Aug 2020 18:45:15 +0000 (13:45 -0500)]
Merge pull request #268 from stoeckmann/chfn
chfn: Prevent buffer overflow.
Christian Brauner [Mon, 10 Aug 2020 10:34:52 +0000 (12:34 +0200)]
Merge pull request #272 from ikerexxe/useradd_covscan
useradd: check return value from chmod and log it
ikerexxe [Mon, 10 Aug 2020 09:44:00 +0000 (11:44 +0200)]
useradd: check return value from chmod and log it
covscan was complaining abot calling chmod and ignoring the return
value:
Error: CHECKED_RETURN (CWE-252):
shadow-4.6/src/useradd.c:2084: check_return: Calling
"chmod(prefix_user_home, mode)" without checking return value. This
library function may fail and return an error code.
2082| mode_t mode = getdef_num ("HOME_MODE",
2083| 0777 & ~getdef_num ("UMASK", GETDEF_DEFAULT_UMASK));
2084|-> chmod (prefix_user_home, mode);
2085| home_added = true;
2086| #ifdef WITH_AUDIT
Christian Brauner [Mon, 10 Aug 2020 08:22:45 +0000 (10:22 +0200)]
Merge pull request #271 from hallyn/2020-08-08/groupmembers
add -U option to groupadd and groupmod
Serge Hallyn [Sun, 9 Aug 2020 21:44:30 +0000 (16:44 -0500)]
add -U option to groupadd and groupmod
Add a -U option which adds new usernames as members. For groupmod,
also add -a (append), without which existing members are removed.
Closes #265
Aleksei Nikiforov [Tue, 4 Aug 2020 07:24:46 +0000 (10:24 +0300)]
Fix potential resource leak in set_selinux_file_context function
Serge Hallyn [Sat, 1 Aug 2020 02:29:21 +0000 (21:29 -0500)]
useradd: suggest --badnames when given a bad name
Closes #266
Tobias Stoeckmann [Sun, 12 Jul 2020 17:01:52 +0000 (19:01 +0200)]
chfn: Prevent buffer overflow.
This is a stability fix, not a security fix, because the affected -o
option can only be used by root and it takes a modified passwd file.
If a gecos field for a user has BUFSIZ characters without commas and an
equals sign (i.e. a huge slop/extra field) and chfn is called with -o,
then a buffer overflow occurs.
It is not possible to trigger this with shadow tools. Therefore, the
passwd file must be modified manually.
I have fixed this unlikely case the easiest and cleanest way possible.
Since chfn bails out if more than 80 characters excluding commas are
supposed to be written into gecos field, we can stop processing early on
if -o argument is too long.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Serge Hallyn [Sat, 20 Jun 2020 03:09:20 +0000 (22:09 -0500)]
libsubid: fix a prototype in api.h
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Wed, 10 Jun 2020 05:31:10 +0000 (00:31 -0500)]
Merge pull request #234 from edneville/79_userdel
Adding run-parts for userdel
ed [Thu, 12 Mar 2020 21:14:57 +0000 (21:14 +0000)]
Adding run-parts style for pre and post useradd/del
Signed-off-by: ed neville <ed@s5h.net>
Serge Hallyn [Mon, 8 Jun 2020 05:10:16 +0000 (00:10 -0500)]
Merge pull request #250 from hallyn/libsubid
[strawman] Implement libsubid
Serge Hallyn [Sat, 18 Apr 2020 23:03:54 +0000 (18:03 -0500)]
Create a new libsubid
Closes #154
Currently this has three functions: one which returns the
list of subuid ranges for a user, one returning the subgids,
and one which frees the ranges lists.
I might be mistaken about what -disable-man means; some of
the code suggests it means just don't re-generate them, but
not totally ignore them. But that doesn't seem to really work,
so let's just ignore man/ when -disable-man.
Remove --disable-shared. I'm not sure why it was there, but it stems
from long, long ago, and I suspect it comes from some ancient
toolchain bug.
Create a tests/run_some, a shorter version of run_all. I'll
slowly add tests to this as I verify they work, then I can
work on fixing the once which don't.
Also, don't touch man/ if not -enable-man.
Changelog:
Apr 22: change the subid list api as recomended by Dan Walsh.
Apr 23: implement get_subid_owner
Apr 24: implement range add/release
Apr 25: finish tests and rebase
May 10: make @owner const
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Serge Hallyn [Sat, 18 Apr 2020 19:57:56 +0000 (14:57 -0500)]
configure: define abi versions
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Serge Hallyn [Fri, 24 Apr 2020 21:41:34 +0000 (16:41 -0500)]
drop svn complications from test runner
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Sun, 19 Apr 2020 04:32:59 +0000 (23:32 -0500)]
tests: use git to determine top_dir
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Sun, 19 Apr 2020 00:17:51 +0000 (19:17 -0500)]
trivial: drop useless version-info from libshadow_la_LDFLAGS
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Serge Hallyn [Sat, 6 Jun 2020 17:59:59 +0000 (12:59 -0500)]
Merge pull request #262 from andydna/master
correct grammar in shadow(5)
andydna [Fri, 5 Jun 2020 03:29:15 +0000 (22:29 -0500)]
correct grammar in shadow(5)
Serge Hallyn [Thu, 28 May 2020 19:45:23 +0000 (14:45 -0500)]
Merge pull request #259 from Inrin/lastlog_MaxPadding
Add maximum padding to fit IPv6-Addresses
Serge Hallyn [Tue, 26 May 2020 19:48:48 +0000 (14:48 -0500)]
Merge pull request #257 from Frans-Spiesschaert/new_dutch_po_branch
(nl) updated Dutch translation
Inrin [Sun, 24 May 2020 21:22:34 +0000 (23:22 +0200)]
Add maximum padding to fit IPv6-Addresses
We use a fixed padding for the From column to fit the maximum of a
minimized IPv6-LL-Address and it's interface.
Frans Spiesschaert [Sun, 24 May 2020 13:26:06 +0000 (15:26 +0200)]
(nl) updated Dutch translation
Serge Hallyn [Mon, 11 May 2020 14:13:34 +0000 (09:13 -0500)]
Merge pull request #251 from lifecrisis/nonexistent
Add "NONEXISTENT" to "login.defs"
Jason Franklin [Fri, 8 May 2020 20:21:09 +0000 (16:21 -0400)]
Update the "README" file
Jason Franklin [Fri, 8 May 2020 19:26:09 +0000 (15:26 -0400)]
Add "NONEXISTENT.xml" to "man/Makefile.am"
Jason Franklin [Fri, 8 May 2020 19:17:43 +0000 (15:17 -0400)]
Name "NONEXISTENT" in the man page for "pwck"
Jason Franklin [Fri, 8 May 2020 19:14:44 +0000 (15:14 -0400)]
Add detailed documentation for "NONEXISTENT"
Jason Franklin [Fri, 8 May 2020 18:58:31 +0000 (14:58 -0400)]
Add "NONEXISTENT" to the "login.defs" man page
Jason Franklin [Fri, 8 May 2020 17:20:14 +0000 (13:20 -0400)]
Check for "NONEXISTENT" in "src/pwck.c"
Jason Franklin [Fri, 8 May 2020 14:42:52 +0000 (10:42 -0400)]
Add "NONEXISTENT" to def_table
Jason Franklin [Fri, 8 May 2020 13:52:34 +0000 (09:52 -0400)]
Add "NONEXISTENT" to "etc/login.defs"
Serge Hallyn [Sat, 2 May 2020 03:26:41 +0000 (22:26 -0500)]
Merge pull request #237 from ikerexxe/usermod_fails
Check only local groups when adding new supplementary groups to a user
Serge Hallyn [Sat, 25 Apr 2020 17:32:13 +0000 (12:32 -0500)]
Merge pull request #249 from brauner/coverity
travis: reorder sections and add regenerated coverity token
Christian Brauner [Sat, 25 Apr 2020 16:45:24 +0000 (18:45 +0200)]
travis: reorder sections and add regenerated coverity token
Also remove the openssl section since both lxc and lxcfs don't need it
either.
Signed-off-by: Christian Brauner <christian@brauner.io>
Serge Hallyn [Sat, 25 Apr 2020 16:32:23 +0000 (11:32 -0500)]
Merge pull request #248 from brauner/coverity
travis: add more architectures + enable Coverity
Christian Brauner [Sat, 25 Apr 2020 10:43:53 +0000 (12:43 +0200)]
travis: add more architectures and Coverity support
Now that travis supports more architectures let's make sure we test on
all of them and that we enable Coverity too.
Signed-off-by: Christian Brauner <christian@brauner.io>
Christian Brauner [Sat, 25 Apr 2020 10:34:49 +0000 (12:34 +0200)]
Merge pull request #247 from jubalh/unusedcpp
Remove unused variables
Michael Vetter [Sat, 25 Apr 2020 10:23:10 +0000 (12:23 +0200)]
Remove unused 'buf' in shadow.c
Michael Vetter [Sat, 25 Apr 2020 10:10:39 +0000 (12:10 +0200)]
Remove unused variable 'cpp'
Serge Hallyn [Thu, 23 Apr 2020 15:56:48 +0000 (10:56 -0500)]
Merge pull request #244 from sthibaul/master
Fix hurd build
Christian Brauner [Mon, 20 Apr 2020 08:01:27 +0000 (10:01 +0200)]
Merge pull request #246 from blueskycs2c/stderr-pr
check_uid_range : warnings go to stderr
blueskycs2c [Mon, 20 Apr 2020 02:16:19 +0000 (10:16 +0800)]
check_uid_range : warnings go to stderr
Christian Brauner [Sat, 18 Apr 2020 10:32:38 +0000 (12:32 +0200)]
Merge pull request #245 from hallyn/2020-04-17/libmisc
remove unused and misleading 'owner' argument from find_new_sub*
Serge Hallyn [Fri, 17 Apr 2020 21:31:56 +0000 (16:31 -0500)]
remove unused and misleading 'owner' argument from find_new_sub*
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Samuel Thibault [Fri, 17 Apr 2020 19:50:48 +0000 (21:50 +0200)]
Fix hurd build
Do not include <sys/prctl.h> we don't have <sys/capability.h>, we don't
need prctl in that case anyway.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Serge Hallyn [Thu, 16 Apr 2020 16:48:21 +0000 (11:48 -0500)]
Merge pull request #243 from blueskycs2c/uid-pr
print a warning from useradd if -u is used with uid number outside ra…
blueskycs2c [Sat, 11 Apr 2020 14:45:54 +0000 (22:45 +0800)]
print a warning from useradd if -u is used with uid number outside range.
Christian Brauner [Fri, 10 Apr 2020 14:58:29 +0000 (16:58 +0200)]
Merge pull request #242 from topimiettinen/login-defs-modernize
login.defs: warn about weak choices
Topi Miettinen [Fri, 10 Apr 2020 11:09:55 +0000 (14:09 +0300)]
login.defs: warn about weak choices
According to crypt(5), MD5 and DES should not be used for new
hashes. Also the default number of SHA rounds chosen by libc is orders
of magnitude too low for modern hardware. Let's warn the users about
weak choices.
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
ikerexxe [Mon, 30 Mar 2020 07:08:23 +0000 (09:08 +0200)]
useradd: check only local groups with -G option
Check only local groups when adding new supplementary groups to a user
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1727236
ikerexxe [Fri, 27 Mar 2020 13:23:02 +0000 (14:23 +0100)]
usermod: check only local groups with -G option
Check only local groups when adding new supplementary groups to a user
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1727236
Serge Hallyn [Sat, 21 Mar 2020 03:30:16 +0000 (22:30 -0500)]
Merge pull request #236 from jsoref/with-an
spelling: with-an
Serge Hallyn [Sat, 21 Mar 2020 03:29:55 +0000 (22:29 -0500)]
Merge pull request #232 from eagleoflqj/master
fix typo 登陆->登录
Serge Hallyn [Fri, 20 Mar 2020 22:45:37 +0000 (17:45 -0500)]
Merge pull request #226 from ikerexxe/dev1
useradd: clarify the useradd -d parameter behavior in man page
ikerexxe [Wed, 4 Mar 2020 13:50:04 +0000 (14:50 +0100)]
useradd: clarify the useradd -d parameter behavior in man page
Explanation: clarify the useradd -d parameter as it does create directory HOME_DIR if it doesn't exit.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1677005
Changelog: [serge] minor tweak to the text
Josh Soref [Tue, 17 Mar 2020 21:09:26 +0000 (17:09 -0400)]
spelling: with-an
eagleoflqj [Wed, 11 Mar 2020 22:51:02 +0000 (18:51 -0400)]
fix typo 登陆->登录
Serge Hallyn [Mon, 9 Mar 2020 18:17:11 +0000 (13:17 -0500)]
Merge pull request #229 from edneville/130_segfaults_on_strftime
Fix segfault on strftime
ed [Mon, 9 Mar 2020 18:01:32 +0000 (18:01 +0000)]
Replacing exit with return
Serge Hallyn [Mon, 9 Mar 2020 16:05:27 +0000 (11:05 -0500)]
Merge pull request #228 from blueskycs2c/br1
fix #223comment at #endif does not match condition of #if
Serge Hallyn [Mon, 9 Mar 2020 16:00:45 +0000 (11:00 -0500)]
Merge pull request #230 from Frans-Spiesschaert/new_dutch_po_branch
updated Dutch translation
Frans Spiesschaert [Sat, 7 Mar 2020 20:55:53 +0000 (21:55 +0100)]
updated Dutch translation
ed@s5h.net [Sat, 7 Mar 2020 16:49:17 +0000 (16:49 +0000)]
Fix segfault when time is unreadable
Adding myself to contributors
Closes #130
blueskycs2c [Thu, 5 Mar 2020 02:51:39 +0000 (10:51 +0800)]
modify #endif does not match condition of #if in passwd.c
Serge Hallyn [Thu, 27 Feb 2020 01:41:54 +0000 (19:41 -0600)]
man/Makefile.am: add HOME_MODE.xml
Closes #217
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Thu, 27 Feb 2020 01:34:13 +0000 (19:34 -0600)]
Merge pull request #219 from infinnovation-dev/master
libmisc: Accept --root=path and --prefix=path option syntax
Serge Hallyn [Thu, 27 Feb 2020 00:13:54 +0000 (18:13 -0600)]
Merge pull request #215 from imba-tjd/patch-1
man(zh_CN): fix typo 现实 -> 显示
Serge Hallyn [Mon, 24 Feb 2020 00:00:23 +0000 (18:00 -0600)]
Merge pull request #216 from ikerexxe/master
useradd: doesn't generate /var/spool/mail/$USER with the proper SELinux user identity
ikerexxe [Wed, 5 Feb 2020 14:04:39 +0000 (15:04 +0100)]
useradd: generate /var/spool/mail/$USER with the proper SELinux user identity
Explanation: use set_selinux_file_context() and reset_selinux_file_context() for create_mail() just as is done for create_home()
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1690527
Colin Hogben [Fri, 7 Feb 2020 21:57:12 +0000 (21:57 +0000)]
libmisc: Accept --root=path and --prefix=path option syntax
Recognise --root=path in addition to --root path (and similarly for
--prefix) to match the syntax accepted by getopt_long.
Fixes #218
谭九鼎 [Mon, 3 Feb 2020 14:02:16 +0000 (22:02 +0800)]
man(zh_CN): fix typo 现实 -> 显示
Serge Hallyn [Thu, 23 Jan 2020 20:38:22 +0000 (14:38 -0600)]
configure.ac: release 4.8.1
This is mainly to revert the --sbindir/--bindir commit which broke some
distros
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Thu, 23 Jan 2020 20:37:42 +0000 (14:37 -0600)]
update changelog
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Thu, 23 Jan 2020 15:15:04 +0000 (09:15 -0600)]
Merge pull request #212 from t8m/in-subuid-mapping
Do not mistake a regular user process for a namespaced one
Tomas Mraz [Mon, 20 Jan 2020 12:58:07 +0000 (13:58 +0100)]
Do not mistake a regular user process for a namespaced one
In case there is a regular user with a process running on a system
with uid falling into a namespaced uid range of another user.
The user with the colliding namespaced uid range will not be
allowed to be deleted without forcing the action with -f.
The user_busy() is adjusted to check whether the suspected process
is really a namespaced process in a different namespace.
Serge Hallyn [Mon, 20 Jan 2020 15:04:51 +0000 (07:04 -0800)]
Merge pull request #210 from t8m/shell-check
Make the check for non-executable shell only a warning.
Serge Hallyn [Mon, 20 Jan 2020 14:57:13 +0000 (06:57 -0800)]
Merge pull request #211 from Frans-Spiesschaert/master
updated po file for Dutch
Frans-Spiesschaert [Thu, 16 Jan 2020 20:08:32 +0000 (21:08 +0100)]
po/nl.po
updated Dutch translation for shadow version 4.8 (pot file from 2019-12-01).
I updated the translation for Debian
and on request of the Debian package maintainer Bálint Réczey I am creating this pull request
Tomas Mraz [Thu, 16 Jan 2020 11:55:30 +0000 (12:55 +0100)]
Make the check for non-executable shell only a warning.
Although it is a good idea to check for an inadvertent typo
in the shell name it is possible that the shell might not be present
on the system yet when the user is added.
Serge Hallyn [Sun, 12 Jan 2020 15:39:13 +0000 (09:39 -0600)]
Merge pull request #209 from Duncaen/home-mode
add new HOME_MODE login.defs(5) option
Duncan Overbruck [Sat, 11 Jan 2020 21:19:37 +0000 (22:19 +0100)]
add new HOME_MODE login.defs(5) option
This option can be used to set a separate mode for useradd(8) and
newusers(8) to create the home directories with.
If this option is not set, the current behavior of using UMASK
or the default umask is preserved.
There are many distributions that set UMASK to 077 by default just
to create home directories not readable by others and use things like
/etc/profile, bashrc or sudo configuration files to set a less
restrictive
umask. This has always resulted in bug reports because it is hard
to follow as users tend to change files like bashrc and are not about
setting the umask to counteract the umask set in /etc/login.defs.
A recent change in sudo has also resulted in many bug reports about
this. sudo now tries to respect the umask set by pam modules and on
systems where pam does not set a umask, the login.defs UMASK value is
used.
Serge Hallyn [Sun, 12 Jan 2020 14:20:50 +0000 (08:20 -0600)]
silence more compiler warnings
And don't reuse the cp variable for two different purposes.
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Sun, 12 Jan 2020 13:56:19 +0000 (07:56 -0600)]
Revert "add new HOME_MODE login.defs(5) option"
Missing file
This reverts commit
a847899b521b0df0665e442845bcff23407d9ea0 .
Serge Hallyn [Sun, 12 Jan 2020 13:31:26 +0000 (07:31 -0600)]
silence compiler warnings
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Sun, 12 Jan 2020 13:24:04 +0000 (07:24 -0600)]
man: add missing author entries
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Sun, 12 Jan 2020 13:19:18 +0000 (07:19 -0600)]
Merge pull request #204 from edneville/198_user_add_tty_logging
Adding tty logging to the useradd command
ed [Wed, 18 Dec 2019 20:53:58 +0000 (20:53 +0000)]
Adding tty logging to the useradd command
This commit adds a from= field to the end of the useradd log entry.
Casting user_name to tallylog_reset to silence a compiler warning.
Changelog: Fixing tabs
Changelog: Changing function prototype to const char* to match user_name declaration.
Serge Hallyn [Sat, 11 Jan 2020 22:20:13 +0000 (16:20 -0600)]
Merge pull request #208 from Duncaen/umask-home
add new UMASK_HOME login.defs option
Duncan Overbruck [Sat, 11 Jan 2020 21:19:37 +0000 (22:19 +0100)]
add new HOME_MODE login.defs(5) option
This option can be used to set a separate mode for useradd(8) and
newusers(8) to create the home directories with.
If this option is not set, the current behavior of using UMASK
or the default umask is preserved.
There are many distributions that set UMASK to 077 by default just
to create home directories not readable by others and use things like
/etc/profile, bashrc or sudo configuration files to set a less
restrictive
umask. This has always resulted in bug reports because it is hard
to follow as users tend to change files like bashrc and are not about
setting the umask to counteract the umask set in /etc/login.defs.
A recent change in sudo has also resulted in many bug reports about
this. sudo now tries to respect the umask set by pam modules and on
systems where pam does not set a umask, the login.defs UMASK value is
used.
Serge Hallyn [Sat, 11 Jan 2020 20:50:55 +0000 (14:50 -0600)]
Update README to point to new alioth list urls
Closes #195.
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Sat, 11 Jan 2020 20:47:57 +0000 (14:47 -0600)]
Merge pull request #206 from edneville/123_log_ssh_original_command_in_nologin
Adding logging of SSH_ORIGINAL_COMMAND to nologin.
ed [Thu, 26 Dec 2019 13:17:11 +0000 (13:17 +0000)]
Adding logging of SSH_ORIGINAL_COMMAND to nologin.
If SSH_ORIGINAL_COMMAND is set, it will be added to the syslog entry.
Closes #123.
Changelog: (SEH squashed commit): Fixing indentation
Changelog: (SEH) break up long line
Serge Hallyn [Fri, 20 Dec 2019 06:14:13 +0000 (00:14 -0600)]
add changelog entry about account-tools-setuid
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
Serge Hallyn [Fri, 20 Dec 2019 06:08:32 +0000 (00:08 -0600)]
Merge pull request #205 from Blub/2019-12-19/bail-on-error-in-for-loops
Makefile: bail out on error in for-loops
Serge Hallyn [Fri, 20 Dec 2019 06:07:23 +0000 (00:07 -0600)]
Merge pull request #199 from falconindy/master
Don't auto-enable ACCT_TOOLS_SETUID if PAM is detected