fmt: formatted
This commit is contained in:
parent
1fa89834d0
commit
a3b9d89b1a
1 changed files with 28 additions and 29 deletions
|
@ -50,16 +50,16 @@ in {
|
|||
# need to set access controls
|
||||
systemd.tmpfiles.rules = [
|
||||
"a /var/log - - - - u:splunk:rx"
|
||||
"a /var/log/auth.log - - - - splunk:r"
|
||||
"a /var/log/messages - - - - u:splunk:r"
|
||||
"a /var/log/secure - - - - u:splunk:r"
|
||||
"a /var/log/auth.log - - - - u:splunk:r "
|
||||
"a /var/log/messages - - - - u:splunk:r "
|
||||
"a /var/log/secure - - - - u:splunk:r "
|
||||
"a /var/log/audit - - - - u:splunk:rx"
|
||||
"a /var/log/audit.log - - - - u:splunk:r"
|
||||
"a /var/log/audit/audit.log - - - - u:splunk:r"
|
||||
"a /var/log/audit.log - - - - u:splunk:r "
|
||||
"a /var/log/audit/audit.log - - - - u:splunk:r "
|
||||
"a /root - - - - u:splunk:rx"
|
||||
"a /root/.bash_history - - - - u:splunk:r"
|
||||
"a /root/.bash_history - - - - u:splunk:r "
|
||||
"a /home/* - - - - u:splunk:rx"
|
||||
"a /home/*/.bash_history - - - - u:splunk:r"
|
||||
"a /home/*/.bash_history - - - - u:splunk:r "
|
||||
];
|
||||
|
||||
security.auditd = {
|
||||
|
@ -160,30 +160,29 @@ in {
|
|||
path = with pkgs; [util-linux toybox];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
Restart="always";
|
||||
Restart = "always";
|
||||
Environment = "SPLUNK_HOME=${cfg.user.home}";
|
||||
ExecStart = "${package}/bin/splunk _internal_launch_under_systemd";
|
||||
KillMode="mixed";
|
||||
KillSignal="SIGINT";
|
||||
TimeoutStopSec=360;
|
||||
LimitNOFILE=65536;
|
||||
LimitRTPRIO=99;
|
||||
SuccessExitStatus="51 52";
|
||||
RestartPreventExitStatus=51;
|
||||
RestartForceExitStatus=52;
|
||||
KillMode = "mixed";
|
||||
KillSignal = "SIGINT";
|
||||
TimeoutStopSec = 360;
|
||||
LimitNOFILE = 65536;
|
||||
LimitRTPRIO = 99;
|
||||
SuccessExitStatus = "51 52";
|
||||
RestartPreventExitStatus = 51;
|
||||
RestartForceExitStatus = 52;
|
||||
User = cfg.user.user;
|
||||
Group = cfg.user.group;
|
||||
NoNewPrivileges = "yes";
|
||||
AmbientCapabilities = "CAP_DAC_READ_SEARCH";
|
||||
|
||||
# ExecStartPre=-/bin/bash -c "chown -R splunk:splunk /opt/splunkforwarder"
|
||||
Delegate="true";
|
||||
# CPUShares=1024;
|
||||
# MemoryLimit=3973632000;
|
||||
PermissionsStartOnly="true";
|
||||
Delegate = "true";
|
||||
# CPUShares=1024;
|
||||
# MemoryLimit=3973632000;
|
||||
PermissionsStartOnly = "true";
|
||||
# ExecStartPost=-/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/cpu/system.slice/%n"
|
||||
# ExecStartPost=-/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/memory/system.slice/%n"
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue