Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apparmor.d breaks waydroid #405

Open
Stoppedpuma opened this issue Jul 9, 2024 · 10 comments
Open

apparmor.d breaks waydroid #405

Stoppedpuma opened this issue Jul 9, 2024 · 10 comments

Comments

@Stoppedpuma
Copy link
Contributor

Stoppedpuma commented Jul 9, 2024

Partially moved from #377

No logs besides this:
[gbinder] ERROR: Can't open /dev/binder: No such file or directory Failed to add presence handler: None

A teardown doesn't fix this issue but uninstalling apparmor.d or just not loading apparmor on startup does.

@roddhjav
Copy link
Owner

How is it not working? Can you confirm you have the binder module available: modinfo binder_linux. If yes, you should be able to load it has usual. If not, you should remove /var/lib/dkms/binder and install it again (while you ensure that pacman-hook-dkms is on complain mode).

@Stoppedpuma
Copy link
Contributor Author

filename: /lib/modules/6.8.9-273-tkg-eevdf-llvm/updates/dkms/binder_linux.ko.zst
modinfo: ERROR: could not get modinfo from 'binder_linux': No such file or directory

This seems to be an issue only with binder as ZFS works perfectly fine, removing /var/lib/dkms/binder and reinstalling with pacman-hook-dkms in complain mode doesn't fix this.

@roddhjav
Copy link
Owner

what do you get with sudo dkms status?

@Stoppedpuma
Copy link
Contributor Author

Stoppedpuma commented Jul 10, 2024

After reinstalling again in teardown it now shows under dkms status, the problem still occurs though. No idea why it didn't prior to the most recent install.

binder/1, 6.7.6-273-tkg-eevdf, x86_64: installed
binder/1, 6.8.9-273-tkg-eevdf-llvm, x86_64: installed
zfs/2.2.4, 6.7.6-273-tkg-eevdf, x86_64: installed
zfs/2.2.4, 6.8.9-273-tkg-eevdf-llvm, x86_64: installed

@roddhjav
Copy link
Owner

roddhjav commented Jul 10, 2024

If the module is here, you should be able to use it. Try to manually load and mount it:

modinfo binder_linux
sudo modprobe binder-linux device=binder,hwbinder,vndbinder
sudo mount -t binder binder /dev/binderfs

And check for any logs.

@Stoppedpuma
Copy link
Contributor Author

Still nothing. searching for any differences in journalctl is nearly impossible as well since even being ran for one second fills hundreds of lines with the /dev/binder not found issue. The closest I can get to a log besides that is errors of /acct and /system being read-only but I'm not sure it's helpful as it isn't new.

@roddhjav
Copy link
Owner

Did the command in my previous comments returned any error? If not, the directory /dev/binder should exist, and therefore, waydroid should work.

@Stoppedpuma
Copy link
Contributor Author

Did the command in my previous comments returned any error?

The command doesn't return any errors

the directory /dev/binder should exist, and therefore, waydroid should work.

/dev/binder doesn't exist is the problem, this is where apparmor,d is the culprit as starting without apparmor loaded or just uninstalling apparmor.d solves this problem.

@roddhjav
Copy link
Owner

roddhjav commented Jul 10, 2024

Try to manually created it (sudo mkdir /dev/binder), and run modprobe again.

@Stoppedpuma
Copy link
Contributor Author

Binder is supposed to be a file apparently

[gbinder] ERROR: Can't open /dev/binder: Is a directory

Linking /dev/binderfs/anbox-binder to /dev/binder doesn't work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants