最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

usb - SE custom rules in AOSP - Stack Overflow

programmeradmin0浏览0评论

I am a junior AOSP developer, I have myservice application with type of coredomain,

type myservice, domain, coredomain, mlstrustedsubject;

I need to open functionfs objects, but adding allow myservice functionfs:file { read write }; faces neverallowed error!

I added /dev/usb-ffs/mygadeht(/.*)? u:object_r:functionfs_file:s0 to file_contexts file and rule allow myservice functionfs_file:file { open read write }; to myservice.te file.

But still opening functionfs object like /dev/usb-ffs/mygadeht/ep0 fails. It works in permissive mode!

Android version is 12.

发布评论

评论列表(0)

  1. 暂无评论