GNU/Linux ◆ xterm-256color ◆ zsh 776 views

On centos 8

First I create a new daemon that provices a bindshell and install it to the system. It runs unconfined and everything works. Later I create a policy so it starts but gets killed once I connect to it and execute a command.

Much based on this guide:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/using_selinux/writing-a-custom-selinux-policy_using-selinux

With code heavily based on deadbits github repository:

https://github.com/deadbits/shells