Skip to content

Commit

Permalink
Merge pull request #136 from willfindlay/will-dev
Browse files Browse the repository at this point in the history
Introduce LSM probes and enforcement
  • Loading branch information
willfindlay committed Aug 4, 2020
2 parents d8fb9d1 + 9be10be commit 6f58f1a
Show file tree
Hide file tree
Showing 14 changed files with 915 additions and 145 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ systemd:
sudo su -c "/bin/sh systemd/create_service.sh"

test: dev
$(MAKE) -C tests
sudo su -c "$(MAKE) -C tests"
1 change: 1 addition & 0 deletions bin/ebph
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def parse_args(sys_args: List[str]):
'normal-factor-den': EBPH_SETTINGS.NORMAL_FACTOR_DEN,
'anomaly-limit': EBPH_SETTINGS.ANOMALY_LIMIT,
'tolerize-limit': EBPH_SETTINGS.TOLERIZE_LIMIT,
'enforcing': EBPH_SETTINGS.ENFORCING,
}

_set.add_argument(
Expand Down
1 change: 1 addition & 0 deletions ebph/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def get_status() -> Dict:
'ebpH Version': __version__,
'Monitoring': bool(API.bpf_program.get_setting(EBPH_SETTINGS.MONITORING)),
'Logging New Seq': bool(API.bpf_program.get_setting(EBPH_SETTINGS.LOG_SEQUENCES)),
'Enforcing': bool(API.bpf_program.get_setting(EBPH_SETTINGS.ENFORCING)),
'Profiles': f'{num_profiles} ({num_training} training ({num_frozen} frozen), {num_normal} normal)',
'Processes': f'{num_processes} ({num_threads} threads)',
'Normal Wait': ns_to_delta_str(API.bpf_program.get_setting(EBPH_SETTINGS.NORMAL_WAIT)),
Expand Down
Loading

0 comments on commit 6f58f1a

Please sign in to comment.