Open ossilator opened 2 months ago
May I ask what Android OS you are using?
the newest stock rom for this device, xiaomi hyperos.
I believe they are caused by getprotobyname()
being broken/stub in Bionic which intentionally returns nothing
https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/include/netdb.h#233
https://fossies.org/linux/inetutils/src/inetd.c#:~:text=849%20%20%20%20%20proto%20%3D%20getprotobyname%20(%22tcp%22)%3B
Problem description
inetd is unable to serve anything; it says "tcp: unknown protocol". i suppose the reason for that is that it cannot read /etc/protocols or something equivalent, due to missing selinux permissions. logcat reports
avc: denied { search } name="tests" [...] app=com.termux.boot
.What steps will reproduce the bug?
create $PREFIX/etc/inetd.conf with this content:
echo stream tcp nowait <your id here> internal
then run $PREFIX/libexec/inetdWhat is the expected behavior?
telnet localhost echo
connects and echoes input.System information