It is awkward, but it was my fault.
I an on Gentoo and I did not have installed 'sec-policy/apparmor-profiles'.
I saw 'sec-policy' and subconsciously associated it with selinux.
That is why I omitted it.
Beats me why.
But thanks for the hint.
Now it works as it supposed to.
On a small different note.
aa-genprof kept complaining about "ERROR: Include file /etc/apparmor.d/local/usr.sbin.sshd not found".
Even if I run it with completely unrelated app, like tcpdump or spotify.
I had to create empty '/etc/apparmor.d/local/usr.sbin.sshd' to make it work.
It is awkward, but it was my fault. apparmor- profiles' .
I an on Gentoo and I did not have installed 'sec-policy/
I saw 'sec-policy' and subconsciously associated it with selinux.
That is why I omitted it.
Beats me why.
But thanks for the hint.
Now it works as it supposed to.
On a small different note. d/local/ usr.sbin. sshd not found". d/local/ usr.sbin. sshd' to make it work.
aa-genprof kept complaining about "ERROR: Include file /etc/apparmor.
Even if I run it with completely unrelated app, like tcpdump or spotify.
I had to create empty '/etc/apparmor.