Skip to content

Commit

Permalink
fix: recvmsg strace parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma-s1n committed Sep 27, 2023
1 parent 10d0dad commit b393dda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/strace/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ $
(
(,\ )
|
[\}\]]
|
$
)
"#
Expand Down
4 changes: 2 additions & 2 deletions tests/cl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ fn run_systemctl() {
fn run_ss() {
Command::cargo_bin(env!("CARGO_PKG_NAME"))
.unwrap()
.args(["run", "--", "ss", "-ltpn"])
.args(["run", "--", "ss", "-l"])
.unwrap()
.assert()
.success()
Expand All @@ -190,6 +190,6 @@ fn run_ss() {
.stdout(predicate::str::contains("ProtectKernelLogs=true\n").count(1))
.stdout(predicate::str::contains("ProtectControlGroups=true\n").count(1))
.stdout(predicate::str::contains("ProtectProc=").not())
.stdout(predicate::str::contains("RestrictAddressFamilies=AF_NETLINK\n").count(1))
.stdout(predicate::str::contains("RestrictAddressFamilies=AF_NETLINK AF_UNIX\n").count(1))
.stdout(predicate::str::contains("SystemCallFilter=~@aio @chown @clock @cpu-emulation @debug @io-event @ipc @keyring @memlock @module @mount @obsolete @pkey @privileged @raw-io @reboot @resources @sandbox @setuid @signal @swap @sync @timer\n").count(1));
}

0 comments on commit b393dda

Please sign in to comment.