I'm running a strange 3.0.35 heavily patched kernel on an embedded device (Kobo eReader). Maybe it partly explains this issue.

kobo:/$ ssh root@
socket: Permission denied
ssh: connect to host port 22: failure
kobo:/$ telnet
telnet: socket: Permission denied

Then I can do this without any problem:

kobo:/$ su root
kobo:/# ssh root@
root@'s password: 
Welcome to InkBox OS!
* Warning *
Root filesystem is mounted read-only.
Invoke `ifsctl mnt rootfs rw' to make it read-write.

It seems, according to the stack trace, that AF_INET socket creation as an unpriviledged user is the main hurdle:

socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = -1 EACCES (Permission denied)

Is there anything I can do to fix it?

  • there is an Android patch restricting socket use. Up to you to know if this patch landed on your Kobo (is that its normal kernel anyway?). Name of the option: CONFIG_ANDROID_PARANOID_NETWORK android.googlesource.com/kernel/msm/+/… . See also on SO: stackoverflow.com/questions/36451444/…
    – A.B
    Jun 20 at 8:32
  • Thanks, it's really strange, how could that be enabled on some random device that by default only uses root and is not paranoid about any security at all. But it was... Jun 20 at 15:27


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.