[英]Interact with SELinux on GenyMotion Virtual Device
I read a lot about SELinux, and I would have liked to try and get my hands on a case study for the university. 我读了很多关于SELinux的文章,并且我想尝试着为大学做一个案例研究。 I have installed various virtual devices on GenyMotion, from Android 6 to Android 9, but nobody owns SElinux: when I do "sestatus" it answers "disabled".
我已经在GenyMotion上安装了各种虚拟设备,从Android 6到Android 9,但是没有人拥有SElinux:当我执行“ sestatus”时,它会回答“ disabled”。 I do not think it's enough to enable it, it seems that the modules must be installed in the kernel, can someone tell me how to do it?
我认为启用它还不够,似乎必须将模块安装在内核中,有人可以告诉我该怎么做吗? I tried but I did not find anything, I'm having a lot of difficulties, it's the first time I do these things.
我尝试过,但是没有找到任何东西,我遇到很多困难,这是我第一次做这些事情。 Thanks to everyone in advance.
预先感谢大家。
Finally I managed to make everything work: I was able to access Selinux information via a terminal in the GenyMotion virtual device. 最终,我设法使一切正常:我能够通过GenyMotion虚拟设备中的终端访问Selinux信息。 Selinux is already active on devices after version 4.3, there is no need to install it as it said @Martin Zeitler.
Selinux在版本4.3之后的设备上已经处于活动状态,无需安装它,因为它表示为@Martin Zeitler。 I explain the solution to the problem (on Linux it works).
我解释了该问题的解决方案(在Linux上有效)。
Finally, thanks to this guide I realized that Selinux policies are stored in binary format, so it is not possible to interact with them without tools. 最后,由于有了本指南,我才意识到Selinux策略是以二进制格式存储的,因此没有工具就无法与它们进行交互。 https://ge0n0sis.github.io/posts/2015/12/exploring-androids-selinux-kernel-policy/
https://ge0n0sis.github.io/posts/2015/12/exploring-androids-selinux-kernel-policy/
one cannot "install SE Linux" on Android; 一个不能在Android上“安装SE Linux”; because it's already installed and enabled by default since API level 21. you'd need to become user
root
, in order to access these management commands. 因为自API级别21开始已经默认安装和启用它,所以您需要成为
root
用户才能访问这些管理命令。 this would only be possible on a rooted hardware device - or a rooted emulator image. 仅在有根的硬件设备或有根的仿真器映像上才有可能。
... just install CentOS or whatever else security enabled Linux distribution, for a test. ...只需安装CentOS或任何其他启用安全性的Linux发行版进行测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.