-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ossec): run "disconnected submissions" checks from systemd timers…
…; report on saved output This should prevent OSSEC from having to sudo to run these commands directly, which adds noise to "/var/log/auth.log" and thus OSSEC's own daily "Successful Logins" report.
- Loading branch information
Showing
6 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...p/debian/app-code/lib/systemd/system/securedrop-check-disconnected-db-submissions.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=job to check for disconnected submissions in the database | ||
|
||
[Service] | ||
ExecStart=/var/www/securedrop/manage.py check-disconnected-db-submissions > /var/lib/securedrop/disconnected_db_submissions.txt | ||
PrivateDevices=yes | ||
PrivateTmp=yes | ||
ProtectSystem=full | ||
ReadOnlyDirectories=/ | ||
ReadWriteDirectories=/var/lib/securedrop | ||
User=www-data | ||
WorkingDirectory=/var/www/securedrop |
9 changes: 9 additions & 0 deletions
9
...rop/debian/app-code/lib/systemd/system/securedrop-check-disconnected-db-submissions.timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=check for disconnected submissions in the database | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |
12 changes: 12 additions & 0 deletions
12
...p/debian/app-code/lib/systemd/system/securedrop-check-disconnected-fs-submissions.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=job to check for disconnected submissions on the filesystem | ||
|
||
[Service] | ||
ExecStart=/var/www/securedrop/manage.py check-disconnected-fs-submissions > /var/lib/securedrop/disconnected_fs_submissions.txt | ||
PrivateDevices=yes | ||
PrivateTmp=yes | ||
ProtectSystem=full | ||
ReadOnlyDirectories=/ | ||
ReadWriteDirectories=/var/lib/securedrop | ||
User=www-data | ||
WorkingDirectory=/var/www/securedrop |
9 changes: 9 additions & 0 deletions
9
...rop/debian/app-code/lib/systemd/system/securedrop-check-disconnected-fs-submissions.timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=check for disconnected submissions on the filesystem | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters