Add host event rules for bind and capability activity

This commit is contained in:
Luna 2026-07-10 04:11:33 -07:00
parent b40ac4252c
commit 9784033f86
No known key found for this signature in database
12 changed files with 316 additions and 8 deletions

View file

@ -22,6 +22,8 @@ class HostEvent:
target_uid: int = -1
target_gid: int = -1
mode: int = 0
capabilities: tuple[str, ...] = field(default_factory=tuple)
module_name: str = ""
@property
def argv_str(self) -> str:
@ -44,4 +46,6 @@ class HostEvent:
"target_uid": self.target_uid,
"target_gid": self.target_gid,
"mode": self.mode,
"capabilities": list(self.capabilities),
"module_name": self.module_name,
}