Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
audit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puppetpublic
audit
Commits
99cacb70
Commit
99cacb70
authored
9 years ago
by
Jonathan Lent
Browse files
Options
Downloads
Patches
Plain Diff
Commenting out BIND and CONNECT, simplify.ignore enhancement
parent
e8373e58
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/etc/audit/audit.rules
+3
-2
3 additions, 2 deletions
files/etc/audit/audit.rules
manifests/auditd.pp
+9
-0
9 additions, 0 deletions
manifests/auditd.pp
with
12 additions
and
2 deletions
files/etc/audit/audit.rules
+
3
−
2
View file @
99cacb70
...
...
@@ -13,8 +13,9 @@
# deletion and command line executions.
-a exit,always -F arch=b32 -S execve -k EXEC
-a exit,always -F arch=b64 -S execve -k EXEC
-a exit,always -F arch=b64 -S bind -k BIND -F exit!=-2
-a exit,always -F arch=b64 -S connect -k CONNECT -F exit!=-2
# Uncomment if you want BIND and CONNECT events to be logged
#-a exit,always -F arch=b64 -S bind -k BIND -F exit!=-2
#-a exit,always -F arch=b64 -S connect -k CONNECT -F exit!=-2
-a exit,always -F arch=b32 -S socketcall -k SOCKETCALL -F exit!=-2
-a exit,always -F arch=b32 -S link -S unlink -k FILEWRITE
-a exit,always -F arch=b64 -S link -S unlink -k FILEWRITE
...
...
This diff is collapsed.
Click to expand it.
manifests/auditd.pp
+
9
−
0
View file @
99cacb70
...
...
@@ -18,6 +18,7 @@
define
audit::auditd
(
$content
=
'NONE'
,
$source
=
'NONE'
,
$source_simplify
=
'NONE'
,
$client_source_port
=
'650'
,
$max_log_file
=
1000
,
$max_log_file_action
=
'ROTATE'
,
...
...
@@ -90,6 +91,7 @@ define audit::auditd (
file
{
'/etc/audisp/plugins.d/simplify.conf'
:
ensure
=>
absent
;
'/etc/newsyslog.daily/audisp-simplify'
:
ensure
=>
absent
;
'/etc/audisp/simplify.ignores'
:
ensure
=>
absent
;
}
base::syslog::fragment
{
'05-modules-imfile.conf'
:
ensure
=>
'absent'
;
...
...
@@ -109,6 +111,13 @@ define audit::auditd (
source
=>
"
$afile
/etc/newsyslog.daily/audisp-simplify"
,
require
=>
Package
[
'newsyslog'
];
}
# Allow custom simplify.ignores
if
$simplify_ignores
!=
'NONE'
{
file
{
'/etc/audisp/simplify.ignores'
:
source
=>
$simplify_ignores
,
require
=>
Package
[
'stanford-auditd-tools'
],
}
}
# Send audisp-simplify to syslog server
if
$simplify_syslog
==
'NONE'
{
base::syslog::fragment
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment