Background
In another post, I reported that:
I'm running Ubuntu 20.04.1 with default kernel 5.4.0-42-generic (installed from Main) on a UEFI system. I want to load two kernel modules ("ashmem" and "binder") with Secure Boot enabled. At least for me, "binder" loads fine with Secure Boot enabled, but "ashmem" does not load with Secure Boot enabled. Both modules load with Secure Boot disabled.
To the above, I’ll add that I had enabled Secure Boot (and enrolled MOK) during the initial clean installation of Ubuntu 20.04. Even so, following the excellent suggestion provided by Rinzwind, I ran the following after the initial installation:
sudo kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der /lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko
And after running the above, I re-ran:
sudo modprobe ashmem_linux
sudo modprobe binder_linux
lsmod | grep -e ashmem_linux -e binder_linux
SUCCESS! Both “ashmem” and “binder” loaded! Thanks Rinzwind!!
What’s more, Anbox starts for me now with Secure Boot enabled, which was my end goal. :)
Error Message
Although both “ashmem” and “binder” now load, and although Anbox now starts (and seems to work properly) for me now with Secure Boot enabled, I still ran the following:
ls -1 /dev/{ashmem,binder}
And I obtained the following:
ls: cannot access '/dev/binder': No such file or directory
/dev/ashmem
Now, I’m still curious why I’m getting the above error ("cannot access '/dev/binder': No such file or directory") with regard to the “binder” module, and whether I should be concerned.
Questions
- Should /dev/binder be created upon loading the “binder” module? (And should the error concern me?)
- If /dev/binder should be created upon loading the “binder” module, how can I force /dev/binder to be created?
- And if /dev/binder should be created upon loading the “binder” module (that is, if I've discovered a bug), where on Launchpad should I report the error?
To reiterate, according to lsmod, both “ashmem” and “binder” load. Also, Anbox seems to be working properly for me now with Secure Boot enabled. I’m posting here to (a) satisfy my own curiosity, (b) document this for others, and (c) determine whether a bug report should be filed regarding binder (and where to file it, if warranted).
Reviewing the installation page for Anbox more closely, I noticed the following:
Although the above doesn't specifically refer the situation for Ubuntu 20.04, I'm guessing that the same applies to it. With that in mind, here are proposed answers to my own questions:
If anyone wants to provide an alternative (better) answer, please feel free to do so. I'll leave this question open for a few days, but will mark it as ANSWERED if I don't see any additional answers/comments within the next few days. :)
It is not known why
/dev/binder
isn't automatically created upon loadingbinder_linux
. It is, however, possible to manually create it (withsudo
or root, apparently).I followed this article that led me to success.