aquasecurity / aquasecurity/tracee

Reduce file events arguments

Open
#1,978 2 comments 1 reaction 0 assignees View on GitHub
kind/chore priority/backlog
Dominant language
Go
Stars
4.6k
Forks
507
Avg merge
2d 8h
Merged PRs (30d)
9

Description

Events that include files information in their arguments tend to have many arguments (`sched_process_exec` is the extreme example for it).
To reduce the amount of arguments and make it more user friendly, I propose to create a `FileInfo` struct to contain the data that is always passed by events on files - path, device, inode and ctime.
This change will probably break many rules for our users, but will improve the accessibility for new users.
WDYT?

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating the definitions for file-related event arguments, including sched_process_exec, and identify the rules that consume path, device, inode, and ctime. Done means those shared values are represented by a FileInfo struct and the affected user-facing rules continue to work with the changed arguments.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, linux
Domain
operating-systems, security
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.