* libmisc/audit_help.c: Added audit_logger_message() to log

messages not related to an account.
	* lib/prototypes.h, libmisc/cleanup.c, libmisc/cleanup_group.c,
	libmisc/cleanup_user.c, libmisc/Makefile.am: Added stack of
	cleanup functions to be executed on exit.
	* NEWS, src/groupadd.c, src/groupdel.c, src/groupmod.c: Only
	report success to audit and syslog when the changes are committed
	to the system. Do not log failure for on-memory changes to audit
	or syslog. Make sure failures and inconsistencies will be reported
	in case of unexpected failures (e.g. malloc failures). Only
	specify an audit message if it is not implicitly implied by the
	type argument. Removed fail_exit (replaced by atexit(do_cleanups)).
This commit is contained in:
nekral-guest
2008-12-22 21:52:43 +00:00
parent a438c2f184
commit 5b8ff14caf
11 changed files with 1008 additions and 476 deletions

12
NEWS
View File

@@ -24,6 +24,13 @@ shadow-4.1.2.2 -> shadow-4.1.3 UNRELEASED
* Speed improvement in case UID_MAX/SYS_UID_MAX/GID_MAX/SYS_GID_MAX is
used for an user/group. This should be noticeable in case of LDAP
configured systems. This should impact useradd, groupadd, and newusers
- error handling improvement
* Make sure errors and incomplete changes are reported to syslog and
audit in case of unexpected failures.
* Report system inconsistencies to syslog and audit.
* Only report success to syslog and audit if the changes are really
performed in the system databases.
This is still not complete.
- /etc/login.defs
* New CREATE_HOME variable to tell useradd to create a home directory by
default.
@@ -35,9 +42,11 @@ shadow-4.1.2.2 -> shadow-4.1.3 UNRELEASED
* Added support for usernames with arbitrary length.
- groupadd
* audit logging improvements.
* error handling improvement (see above).
* Speedup (see "addition of users or groups" above).
- groupdel
* audit logging improvements.
* error handling improvement (see above).
- groupmems
* Check if user exist before they are added to groups.
* Avoid segfault in case the specified group does not exist in /etc/group.
@@ -50,6 +59,9 @@ shadow-4.1.2.2 -> shadow-4.1.3 UNRELEASED
* Added support for shadow groups.
* Added support long options --add (-a), --delete (-d), --purge (-p),
--list (-l), --group (-g).
- groupmod
* audit logging improvements.
* error handling improvement (see above).
- newusers
* Implement the -r, --system option.
* Speedup (see "addition of users or groups" above).