Skip to content
Permalink
Browse files

If space_left_action is rotate, allow it every time

  • Loading branch information...
stevegrubb committed Jun 7, 2019
1 parent de35e6f commit f58ec40668157969d7b55b7ad3cbd21f93ac428c
Showing with 12 additions and 4 deletions.
  1. +1 −0 ChangeLog
  2. +3 −2 docs/auditd.conf.5
  3. +8 −2 src/auditd-event.c
@@ -71,6 +71,7 @@
- Add exe field to audit_log_user_command in libaudit
- In auditctl support filter on socket address families (Richard Guy Briggs)
- Deprecate support for Alpha & IA64 processors
- If space_left_action is rotate, allow it every time (#1718444)

2.8.3
- Correct msg function name in LRU debug code
@@ -175,7 +175,7 @@ will cause the audit daemon to stop writing records to the disk. The daemon will
.I single
option will cause the audit daemon to put the computer system in single user mode. The
.I halt
option will cause the audit daemon to shutdown the computer system.
option will cause the audit daemon to shutdown the computer system. Except for rotate, it will perform this action just one time.
.TP
.I admin_space_left
This is a numeric value in megabytes that tells the audit daemon when
@@ -207,7 +207,8 @@ will cause the audit daemon to stop writing records to the disk. The daemon will
.I single
option will cause the audit daemon to put the computer system in single user mode. The
.I halt
option will cause the audit daemon to shutdown the computer system.
option will cause the audit daemon to shutdown the computer system. Except for r
otate, it will perform this action just one time.
.TP
.I disk_full_action
This parameter tells the system what action to take when the system has
@@ -733,7 +733,10 @@ static void check_space_left(void)
if (buf.f_bavail < blocks) {
if (fs_space_warning == 0) {
do_space_left_action(0);
fs_space_warning = 1;
// Allow unlimited rotation
if (config->space_left_action !=
FA_ROTATE)
fs_space_warning = 1;
}
} else if (fs_space_warning &&
config->space_left_action == FA_SYSLOG){
@@ -744,7 +747,10 @@ static void check_space_left(void)
if (buf.f_bavail < blocks) {
if (fs_admin_space_warning == 0) {
do_space_left_action(1);
fs_admin_space_warning = 1;
// Allow unlimited rotation
if (config->admin_space_left_action !=
FA_ROTATE)
fs_admin_space_warning = 1;
}
} else if (fs_admin_space_warning &&
config->admin_space_left_action == FA_SYSLOG) {

0 comments on commit f58ec40

Please sign in to comment.
You can’t perform that action at this time.