File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 70
70
echo "Starting dbus-session...";
71
71
eval $(dbus-launch --sh-syntax --exit-with-session);
72
72
echo "Running suricata-notify with strace..."
73
- strace -f -o /tmp/suricata-notify-strace.log ./suricata-notify -v -w 60 -z 0 -e ./ eve.json
73
+ strace -f -o /tmp/suricata-notify-strace.log ./suricata-notify -v -w 60 -z 0 -e eve.json
74
74
'
75
75
76
76
- name : Upload Strace Log
Original file line number Diff line number Diff line change @@ -126,13 +126,6 @@ int sanitize_file_input(const char *log_file)
126
126
return -1 ;
127
127
}
128
128
129
- // Check if the path is absolute (optional, based on use case)
130
- if (log_file [0 ] != '/' )
131
- {
132
- fprintf (stderr , "Error: log_file path is not absolute.\n" );
133
- return -1 ;
134
- }
135
-
136
129
// Check for potential path traversal (../)
137
130
if (strstr (log_file , "../" ) != NULL )
138
131
{
You can’t perform that action at this time.
0 commit comments