selinux 总结

1.seapp_contexts 用途

user=system seinfo=platform name=com.android.car domain=carservice_app type=system_app_data_file

用于限定app的运行doamin ,如上,如果不在seapp_contexts 里添加上述代码。将会运行在 system_app 域, 导致访问文件的权限过大。 可以通过上述的方案,使其运行在carservice_app 域中 。

不用再file_contexts 里边,进行标记了

猜你喜欢

转载自blog.csdn.net/u013377887/article/details/108408150
今日推荐