mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Merge pull request #8825 from Security-Onion-Solutions/config
resolve inode issue with soc_users_roles when deleting a user; other minor improvements
This commit is contained in:
@@ -573,7 +573,7 @@ function deleteUser() {
|
|||||||
rolesTmpFile="${socRolesFile}.tmp"
|
rolesTmpFile="${socRolesFile}.tmp"
|
||||||
createFile "$rolesTmpFile" "$soUID" "$soGID"
|
createFile "$rolesTmpFile" "$soUID" "$soGID"
|
||||||
grep -v "$identityId" "$socRolesFile" > "$rolesTmpFile"
|
grep -v "$identityId" "$socRolesFile" > "$rolesTmpFile"
|
||||||
mv "$rolesTmpFile" "$socRolesFile"
|
cat "$rolesTmpFile" > "$socRolesFile"
|
||||||
}
|
}
|
||||||
|
|
||||||
case "${operation}" in
|
case "${operation}" in
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
soc:
|
soc:
|
||||||
logFilename: /opt/sensoroni/logs/sensoroni-server.log
|
logFilename: /opt/sensoroni/logs/sensoroni-server.log
|
||||||
|
logLevel: info
|
||||||
actions:
|
actions:
|
||||||
- name: actionHunt
|
- name: actionHunt
|
||||||
description: actionHuntHelp
|
description: actionHuntHelp
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ function manage_user() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ exit_code -eq 0 ]]; then
|
if [[ exit_code -eq 0 ]]; then
|
||||||
log "Successful command execution"
|
log "Successful command execution: $response"
|
||||||
$(echo "true" > "${SOC_PIPE}")
|
$(echo "true" > "${SOC_PIPE}")
|
||||||
else
|
else
|
||||||
log "Unsuccessful command execution: $response ($exit_code)"
|
log "Unsuccessful command execution: $response ($exit_code)"
|
||||||
@@ -150,7 +150,7 @@ function manage_salt() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ exit_code -eq 0 ]]; then
|
if [[ exit_code -eq 0 ]]; then
|
||||||
log "Successful command execution"
|
log "Successful command execution: $response"
|
||||||
$(echo "true" > "${SOC_PIPE}")
|
$(echo "true" > "${SOC_PIPE}")
|
||||||
else
|
else
|
||||||
log "Unsuccessful command execution: $response ($exit_code)"
|
log "Unsuccessful command execution: $response ($exit_code)"
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
soc:
|
soc:
|
||||||
|
logLevel:
|
||||||
|
description: The SOC log level, useful for enabling debug logging for advanced troubleshooting. Allowed values are debug, info, warn, error. The SOC log is available at /opt/so/log/soc/sensoroni-server.log.
|
||||||
|
global: True
|
||||||
|
regex: (info|debug|warn|error)
|
||||||
files:
|
files:
|
||||||
soc:
|
soc:
|
||||||
banner__md:
|
banner__md:
|
||||||
|
|||||||
Reference in New Issue
Block a user