SELinux: command output printed on serial but not on ssh
by JuventusFC from LinuxQuestions.org on (#5MYW0)
I am trying to configure SELinux on Poky Linux distro.
I am connecting to the board both on serial and ssh.
Launching ping and ifconfig on ssh the board prints nothing, whereas the same command on serial is printing the correct one.
At first, ping was completely disabled, so I had to patch the netutils SELinux policy (now works correctly).
They work properly in permissive mode (enforcing=0), the issue arises in enforcing mode (enforcing=1)
The command Code:journalctl -xe | grep "denied" shows no "denied" for ping neither ifconfig.
How can I fix this issue? Or where should I look further? Maybe a /dev/pts error?


I am connecting to the board both on serial and ssh.
Launching ping and ifconfig on ssh the board prints nothing, whereas the same command on serial is printing the correct one.
At first, ping was completely disabled, so I had to patch the netutils SELinux policy (now works correctly).
They work properly in permissive mode (enforcing=0), the issue arises in enforcing mode (enforcing=1)
The command Code:journalctl -xe | grep "denied" shows no "denied" for ping neither ifconfig.
How can I fix this issue? Or where should I look further? Maybe a /dev/pts error?