shadow/src
Michael Vetter 37412f505e Fix useradd audit event logging of ID field
When useradd sends its ADD_USER event, it is filling in the id field. This is not yet written to disk. When auditd sees the event and the log format is enriched, auditd tries to lookup the user name but it does not exist. This causes the event to never be resolvable since ausearch relies on the lookup information attached by auditd.

The fix is to not send the id information for any event until after close_files() is called. Just the acct field is all that is

Patch by Steve Grubb (afaik).

Reported at https://bugzilla.redhat.com/show_bug.cgi?id=1713432
2022-12-15 16:29:42 -06:00
..
.gitignore getsubids: system binary for user's sub*ids 2021-11-17 16:35:50 +01:00
.indent.pro [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
chage.c chage: Fix regression in print_date 2022-10-05 12:43:45 +02:00
check_subid_range.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
chfn.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
chgpasswd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
chpasswd.c chpasswd: add IS_CRYPT_METHOD 2022-04-03 21:07:09 -05:00
chsh.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
expiry.c Assume SIGTSTP is defined 2022-12-15 16:22:05 -06:00
faillog.c Initialize local variables 2022-05-24 07:49:11 -05:00
free_subid_range.c Declare file local functions static 2022-01-03 15:09:17 +01:00
get_subid_owners.c Declare file local functions static 2022-01-03 15:09:17 +01:00
getsubids.c Declare file local functions static 2022-01-03 15:09:17 +01:00
gpasswd.c Assume SIGTSTP is defined 2022-12-15 16:22:05 -06:00
groupadd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupdel.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupmems.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupmod.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groups.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
grpck.c Declare read-only lookup pointers const 2022-01-03 15:09:17 +01:00
grpconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
grpunconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
id.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
lastlog.c lastlog: check for localtime() return value 2022-10-07 09:53:02 -05:00
login_nopam.c Assume <netdb.h> exists 2022-12-15 16:22:05 -06:00
login.c Don't test for NULL before calling free(3) 2022-09-29 16:03:53 +02:00
logoutd.c Change to strncat 2022-03-18 16:02:01 -05:00
Makefile.am getsubids: system binary for user's sub*ids 2021-11-17 16:35:50 +01:00
new_subid_range.c Declare file local functions static 2022-01-03 15:09:17 +01:00
newgidmap.c Declare variable for string literal const 2022-01-03 15:09:17 +01:00
newgrp.c Replace the deprecated getpass(3) by our agetpass() 2022-12-05 10:47:19 +01:00
newuidmap.c Declare file local functions static 2022-01-03 15:09:17 +01:00
newusers.c Don't test for NULL before calling free(3) 2022-09-29 16:03:53 +02:00
nologin.c Update licensing info 2021-12-23 19:36:50 -06:00
passwd.c Replace the deprecated getpass(3) by our agetpass() 2022-12-05 10:47:19 +01:00
pwck.c src: correct "badname" option 2022-05-06 10:13:51 -05:00
pwconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
pwunconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
su.c Use 'void' instead of 'RETSIGTYPE'. Use 'sighandler_t' too. 2022-01-15 08:25:53 -06:00
suauth.c Update licensing info 2021-12-23 19:36:50 -06:00
sulogin.c Remove preprocessor conditionals that are always true 2022-12-15 16:22:05 -06:00
useradd.c Fix useradd audit event logging of ID field 2022-12-15 16:29:42 -06:00
userdel.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
usermod.c fix usermod -rG x y while user y is not in group x will cause user y add into group x 2022-10-06 20:29:44 -05:00
vipw.c Remove redeclared variable 2022-05-24 07:49:11 -05:00