View | Details | Raw Unified | Return to bug 38771
Collapse All | Expand All

(-)a/data/osec.cron (+7 lines)
Lines 133-140 while read l; do Link Here
133
				exit 0
133
				exit 0
134
			;;
134
			;;
135
		'New files added to control:') t='ADDED'        ;;
135
		'New files added to control:') t='ADDED'        ;;
136
		'New dangerous files:')       t='ADDED'        ;;
136
		'Changed controlled files:')   t='CHANGED'      ;;
137
		'Changed controlled files:')   t='CHANGED'      ;;
138
		'Changed dangerous files:')    t='CHANGED'      ;;
139
		'These regular files turned into symlinks:') t='CHANGED' ;;
140
		'These symlinks changed their target:')      t='CHANGED' ;;
141
		'Changed extended attributes:') t='CHANGED'     ;;
142
		'Changes in SELINUX policy:')  t='CHANGED'      ;;
137
		'Removed from control:')       t='REMOVED'      ;;
143
		'Removed from control:')       t='REMOVED'      ;;
144
		'Removed from dangerous files list:') t='REMOVED' ;;
138
		'- /'*) [ -z "${t-}" ] || eval "$t=\$((\$t+1))" ;;
145
		'- /'*) [ -z "${t-}" ] || eval "$t=\$((\$t+1))" ;;
139
	esac
146
	esac
140
done < "$TEMPFILE"
147
done < "$TEMPFILE"
(-)a/data/osec_reporter (-1 / +1 lines)
Lines 184-190 print "\nThis is a report generated by osec at '$date'\n\n"; Link Here
184
if (%new_bad_files or %del_bad_files or %change_bad_files) {
184
if (%new_bad_files or %del_bad_files or %change_bad_files) {
185
	print "-- PLEASE PAY ATTENTION TO --\n";
185
	print "-- PLEASE PAY ATTENTION TO --\n";
186
	if (%new_bad_files) {
186
	if (%new_bad_files) {
187
		print "New dangerous files :\n";
187
		print "New dangerous files:\n";
188
		print "\t- $_ is $new_bad_files{$_}\n"
188
		print "\t- $_ is $new_bad_files{$_}\n"
189
			foreach (sort keys %new_bad_files);
189
			foreach (sort keys %new_bad_files);
190
	}
190
	}

Return to bug 38771