Giter VIP home page Giter VIP logo

anbox-modules-dkms's Introduction

Hi there (from the future) 👋

View all my projects that I am maintaining: https://github.com/sickcodes/

View CVEs, advisories, and erroneous releases: https://github.com/sickcodes/security

View the main site: https://sick.codes

Follow me on Twitter: https://twitter.com/sickcodes

Connect with me on Linkedin (business) https://www.linkedin.com/in/sickcodes/

View my YouTube tutorials https://www.youtube.com/c/sickcodes

Join my Discord: https://discord.com/invite/sickcodeschat

Join my Telegram: https://t.me/sickcodeschat

Working on https://automatedsecurityresearch.com/

But most of all, feel free to get in touch! https://sick.codes/contact/ or info (at) sick.codes

Good vibes, good code, good times only will be stricly enforced! :)

anbox-modules-dkms's People

Contributors

sickcodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

anbox-modules-dkms's Issues

Work in Progress - Help much appreciated

We are trying to create ngbox modules dkms that were removed as per the readme due to security risks and license stuff related to life before using kprobes.

This will allow Anbox, WayDroid, Droid Native, and many other LXC based android solutions to work like 🔥

binder doesn't compile (gcc 11.4.0, kernel 5.15.0-79-generic)

Binder doesn't compile correctly.

Build log is

DKMS make.log for anbox-binder-1 for kernel 5.15.0-79-generic (x86_64)
So 27. Aug 19:45:06 CEST 2023
make -C /lib/modules/5.15.0-79-generic/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-79-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
  You are using:           gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  CC [M]  /var/lib/dkms/anbox-binder/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder_alloc.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binderfs.o
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4499: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4499 | #define CONFIG_ANDROID_BINDER_DEVICES ""
      | 
<command-line>: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4499: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4499 | #define CONFIG_ANDROID_BINDER_DEVICES ""
      | 
<command-line>: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4499: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4499 | #define CONFIG_ANDROID_BINDER_DEVICES ""
      | 
<command-line>: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4499: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4499 | #define CONFIG_ANDROID_BINDER_DEVICES ""
      | 
<command-line>: note: this is the location of the previous definition
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_transaction’:
/var/lib/dkms/anbox-binder/1/build/binder.c:3130:55: error: passing argument 2 of ‘security_task_getsecid_obj’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 3130 |                 security_task_getsecid_obj(proc->tsk, &secid);
      |                                                       ^~~~~~
      |                                                       |
      |                                                       u32 * {aka unsigned int *}
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:546:72: note: expected ‘struct lsmblob *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’}
  546 | void security_task_getsecid_obj(struct task_struct *p, struct lsmblob *blob);
      |                                                        ~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:3134:55: error: passing argument 2 of ‘security_secid_to_secctx’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 3134 |                 ret = security_secid_to_secctx(secid, &secctx, &secctx_sz);
      |                                                       ^~~~~~~
      |                                                       |
      |                                                       char **
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:592:71: note: expected ‘struct lsmcontext *’ but argument is of type ‘char **’
  592 | int security_secid_to_secctx(struct lsmblob *blob, struct lsmcontext *cp,
      |                                                    ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c:3183:41: error: passing argument 1 of ‘security_release_secctx’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 3183 |                 security_release_secctx(secctx, secctx_sz);
      |                                         ^~~~~~
      |                                         |
      |                                         char *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:596:49: note: expected ‘struct lsmcontext *’ but argument is of type ‘char *’
  596 | void security_release_secctx(struct lsmcontext *cp);
      |                              ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c:3183:17: error: too many arguments to function ‘security_release_secctx’
 3183 |                 security_release_secctx(secctx, secctx_sz);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:596:6: note: declared here
  596 | void security_release_secctx(struct lsmcontext *cp);
      |      ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:3518:41: error: passing argument 1 of ‘security_release_secctx’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 3518 |                 security_release_secctx(secctx, secctx_sz);
      |                                         ^~~~~~
      |                                         |
      |                                         char *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:596:49: note: expected ‘struct lsmcontext *’ but argument is of type ‘char *’
  596 | void security_release_secctx(struct lsmcontext *cp);
      |                              ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c:3518:17: error: too many arguments to function ‘security_release_secctx’
 3518 |                 security_release_secctx(secctx, secctx_sz);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:596:6: note: declared here
  596 | void security_release_secctx(struct lsmcontext *cp);
      |      ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:297: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1909: /var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-79-generic'
make: *** [Makefile:8: all] Error 2

DEbian kernel 5.19.3

DKMS make.log for anbox-ashmem-1 for kernel 5.19.3-armmp-lpae (armv7l)
Wed 07 Sep 2022 10:29:45 PM UTC
make -C /lib/modules/5.19.3-armmp-lpae/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-5.19.3-armmp-lpae'
CC [M] /var/lib/dkms/anbox-ashmem/1/build/deps.o
CC [M] /var/lib/dkms/anbox-ashmem/1/build/ashmem.o
/var/lib/dkms/anbox-ashmem/1/build/deps.c:9:3: error: #error "Your kernel does not support KProbes, but this is required to compile ashmem as a kernel module on kernel 5.7 and later"
9 | # error "Your kernel does not support KProbes, but this is required to compile ashmem as a kernel module on kernel 5.7 and later"
| ^~~~~
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/anbox-ashmem/1/build/deps.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1849: /var/lib/dkms/anbox-ashmem/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.3-armmp-lpae'
make: *** [Makefile:12: all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.