From b522e8915b0af737baa0121d27b9e296bf6f89e6 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 21 Jan 2021 20:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20getenforce=20=E5=91=BD?= =?UTF-8?q?=E4=BB=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Android/SELinux/Android_SELinux_详解.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Software/Development/OperatingSystem/Android/SELinux/Android_SELinux_详解.md b/Software/Development/OperatingSystem/Android/SELinux/Android_SELinux_详解.md index 1ebff93..d0a2d5d 100644 --- a/Software/Development/OperatingSystem/Android/SELinux/Android_SELinux_详解.md +++ b/Software/Development/OperatingSystem/Android/SELinux/Android_SELinux_详解.md @@ -28,6 +28,14 @@ androidboot.selinux=permissive androidboot.selinux=disabled ``` +可以通过: + +```bash +adb shell getenforce +``` + +获取当前的 SELinux 工作模式。 + ## 3.SEAndroid SEAndroid 是在 Android 系统中基于 SELinux 推出的强制访问控制模型,来完善自主访问模型中只要取得 root 权限就可以为所欲为的情况。