Skip to content

Commit

Permalink
Added ability for sshd to send ssh client SIGTERM.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtesta committed Sep 9, 2019
1 parent f2da2f6 commit 0ac539d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apparmor/home.ssh-mitm.bin.ssh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
network inet6 stream,
network unix stream,

signal receive set=(term) peer=/home/ssh-mitm/bin/sshd_mitm,

/dev/pts/* rw,
/dev/tty rw,
/proc/*/fd/ r,
Expand Down
2 changes: 2 additions & 0 deletions apparmor/home.ssh-mitm.bin.sshd_mitm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
network unix stream,
network netlink raw,

signal send set=(term) peer=/home/ssh-mitm/bin/ssh,

/bin/bash r,
/dev/ptmx rw,
/dev/pts/* rw,
Expand Down

0 comments on commit 0ac539d

Please sign in to comment.