3 Star 1 Fork 14

dapaodexiaoyu2/binary_keep

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
runcon.patch 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
dapaodexiaoyu2 提交于 2022-07-01 15:05 +08:00 . add runcon for toybox
diff --git a/BUILD.gn b/BUILD.gn
index f763f78..6d6fe95 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -121,6 +121,7 @@ if (defined(ohos_lite)) {
"toys/other/tac.c",
"toys/other/taskset.c",
"toys/other/timeout.c",
+ "toys/android/runcon.c",
"toys/other/truncate.c",
"toys/other/uptime.c",
"toys/other/usleep.c",
@@ -532,6 +533,7 @@ if (defined(ohos_lite)) {
"toys/other/lspci.c",
"toys/other/lsusb.c",
"toys/other/makedevs.c",
+ "toys/android/runcon.c",
"toys/other/mcookie.c",
"toys/other/mix.c",
"toys/other/mkpasswd.c",
diff --git a/generated/config.h b/generated/config.h
index 18bd7d1..5803524 100644
--- a/generated/config.h
+++ b/generated/config.h
@@ -649,8 +649,8 @@
#define USE_LOG(...)
#define CFG_RESTORECON 0
#define USE_RESTORECON(...)
-#define CFG_RUNCON 0
-#define USE_RUNCON(...)
+#define CFG_RUNCON 1
+#define USE_RUNCON(...) __VA_ARGS__
#define CFG_SENDEVENT 0
#define USE_SENDEVENT(...)
#define CFG_SETENFORCE 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dapaodexiaoyu2/binary_keep.git
git@gitee.com:dapaodexiaoyu2/binary_keep.git
dapaodexiaoyu2
binary_keep
binary_keep
master

搜索帮助