首页
课程
问答
CTF
社区
招聘
看雪峰会
发现
排行榜
知识库
工具下载
看雪20年
看雪商城
证书查询
登录
注册
首页
社区
课程
招聘
发现
问答
CTF
排行榜
知识库
工具下载
看雪峰会
看雪商城
证书查询
社区
Android安全
发新帖
0
0
[求助]在android5.0 init.rc 中启动自己的daemon
发表于: 2015-8-12 18:10
11916
[求助]在android5.0 init.rc 中启动自己的daemon
飞火
1
2015-8-12 18:10
11916
最近需要在android5.0 init.rc 中启动自己的daemon,
按照之前的方法,修改了boot.img中的init.rc
如下:
service my_service /sbin/my_binary
class main
user root
seclabel u:r:init_shell:s0
oneshot
或者标签使用
seclabel u:r:rootfs:s0
/sbin/my_binary 都不能启动。
修改 /system/bin/install-recovery.sh 也不能启动。
应该是SEAndroid 造成的,但是不知道具体原因。
哪位大侠知道怎么回事儿,指教一二,十分谢谢~~
[峰会]看雪.第八届安全开发者峰会10月23日上海龙之梦大酒店举办!
收藏
・
0
免费
・
0
支持
分享
分享到微信
分享到QQ
分享到微博
赞赏记录
参与人
雪币
留言
时间
查看更多
赞赏
×
1 雪花
5 雪花
10 雪花
20 雪花
50 雪花
80 雪花
100 雪花
150 雪花
200 雪花
支付方式:
微信支付
赞赏留言:
快捷留言
感谢分享~
精品文章~
原创内容~
精彩转帖~
助人为乐~
感谢分享~
最新回复
(
4
)
netsniffer
雪 币:
53
活跃值:
(275)
能力值:
( LV3,RANK:20 )
在线值:
发帖
10
回帖
336
粉丝
4
关注
私信
netsniffer
2
楼
先手动adb shell /sbin/my_binary看能否运行,可以的话再考虑是否是selinux问题
查看selinux的异常再根据异常加相应的策略
adb shell "stop my_service; start my_service"
adb shell "cat /proc/kmsg | grep avc"
2015-8-13 11:04
0
duoniduoni
雪 币:
181
活跃值:
(45)
能力值:
( LV2,RANK:10 )
在线值:
发帖
11
回帖
113
粉丝
1
关注
私信
duoniduoni
3
楼
在 external/policy中修改 service_context 添加你自己服务的安全配置,不然启动不起来
你服务程序(EXE)本身也需要安全配置。
2015-8-13 11:34
0
飞火
雪 币:
238
活跃值:
(25)
能力值:
( LV4,RANK:50 )
在线值:
发帖
3
回帖
30
粉丝
0
关注
私信
飞火
1
4
楼
谢谢 两位大侠,这个问题我还没有解决,换在看,
我的目的是修改rom,在init.rc中添加自己的服务,使其开机的时候,可以自动启动。
这个目标在没有源码的情况下,应该可以实现吧?
只是不知道都要修改那几个文件?
我现在在根据自己找到的资料正在尝试着修改。谢谢各位!
init.rc
----------------------------
service my_binary /sbin/my_binary
class main
user root
seclabel u:r:init_shell:s0
oneshot
cat/proc/kmsg|grep avc
207.276:156): avc: denied { entrypoint } for pid=4727 comm="init" path="/sbin/my_binary" dev="rootfs" ino=4451 scontext=u:r:init_shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file
2015-8-14 11:43
0
飞火
雪 币:
238
活跃值:
(25)
能力值:
( LV4,RANK:50 )
在线值:
发帖
3
回帖
30
粉丝
0
关注
私信
飞火
1
5
楼
谢谢 两位大侠,已经启动起来了, 是把上面的class main 改为class core
对SEAndroid还没有熟悉,得再好好看看~ 总结下
2015-8-14 15:25
0
游客
登录
|
注册
方可回帖
回帖
表情
雪币赚取及消费
高级回复
返回
飞火
1
3
发帖
30
回帖
50
RANK
关注
私信
他的文章
[求助]在android5.0 init.rc 中启动自己的daemon
11917
[翻译]Yet Another Android Master Key Bug #9950697
8442
[原创]android apk 逆向中常用工具一览
12289
关于我们
联系我们
企业服务
看雪公众号
专注于PC、移动、智能设备安全研究及逆向工程的开发者社区
看原图
赞赏
×
雪币:
+
留言:
快捷留言
为你点赞!
返回
顶部