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

asus-z00t: Enable USER_NS #37

Merged
merged 3 commits into from Nov 19, 2019
Merged

Conversation

@samueldr
Copy link
Member

samueldr commented Oct 10, 2019

It seems the kernel is too old, and lacks capabilities, so upower doesn't work as with #36, but is a likely good first step.

Jul 07 23:35:27 nixos systemd[1]: Starting Daemon for power management...
Jul 07 23:35:27 nixos systemd[920]: upower.service: Failed to drop capabilities: Operation not permitted
Jul 07 23:35:27 nixos systemd[920]: upower.service: Failed at step CAPABILITIES spawning /nix/store/lkwf8bsfy0kn0g5mahhijr1lrh43h3mw-upower-0.99.11/libexec/upowerd: Operation not permitted
Jul 07 23:35:27 nixos systemd[1]: upower.service: Main process exited, code=exited, status=218/CAPABILITIES
Jul 07 23:35:27 nixos systemd[1]: upower.service: Failed with result 'exit-code'.
Jul 07 23:35:27 nixos systemd[1]: Failed to start Daemon for power management.
Jul 07 23:35:27 nixos systemd[1]: upower.service: Service RestartSec=100ms expired, scheduling restart.

Something will need to be figured out about that.


There's a bunch to unpack.

The patches are mostly reverts of spooky qualcomm, Android or asus code. When not spooky, it's simply not written with USER_NS in mind.

The features disabled in config.aarch64 are features added to the kernel for Android, mostly network bandwidth accounting. Those features, too, weren't built with USER_NS in mind. Disabling them is easier than surgically removing the commits for now.

In addition to all that, the kernel has been updated to the latest revision from the lineageos repository. I figured I never did it since initially porting the device as a test way back when.

samueldr added 3 commits Oct 9, 2019
This is dumb... These are all android/google/qualcomm/asus "features"
added to the kernel with no concern about actually being compatible
with the kernel. They all assume no USER_NS stuff.

Fun!
@samueldr samueldr merged commit 0ad7247 into NixOS:master Nov 19, 2019
@samueldr samueldr deleted the samueldr-wip:device/asus-z00t-userns branch Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.