selinux
来源:互联网 发布:如何在淘宝上购物 编辑:程序博客网 时间:2024/06/12 01:43
1、定义对象,这样其它地方就可以使用了
ro.fun.su u:object_r: ro_fun_su_prop:s0
type ro_fun_su_prop , property_type, mtk_core_property_type;
这里定义了一个 ro_fun_su_prop 类型为 property_type, mtk_core_property_type
可以理解为 ro_fun_su_prop 就是对 ro.fun.su 客体抽象出来的一种实现
3、使用
使用 ro_fun_su_prop 地方相当使用 ro.fun.su
allow system_server ro_fun_su_prop:file r_file_perms;
4、系统属性的定义
系统属性是对相同性质主体或者客体的一种抽象,抽象为一种类型
attribute file_type;
文件类型,代表所有的文件。
定义了type 中需要使用到的属性值,所有的客体与主体只会属于这些事先定义好的类别。
属性与type 是在同一个命名空间,可以认为是相同效果的。
5、在申明类型时,关联属性
type httpd_user_content_t, file_type, httpdcontent;
等效
type httpd_user_content_t; //申明类型
typeattribute httpd_user_content_t file_type, httpdcontent; //关联属性
typeattribute可以让申明与关联分开,从而控制更灵活
http://blog.csdn.net/myarrow/article/details/9856095/
阅读全文
0 0
- selinux
- SELinux
- SELinux
- SELinux
- SELinux
- SELinux
- selinux
- SELinux
- SElinux
- Selinux
- SELinux
- SElinux
- selinux
- SElinux
- selinux
- Selinux
- selinux
- SELinux
- disconf回调
- task1总结
- Android自定义控件基础知识----View的生命周期
- java json总结 读取json文件或者把对象写入到json文件里面
- 如何使检索出来的columns中的值唯一
- selinux
- 设计模式--工厂模式
- 十月十日JavaScript基础3
- Python的hasattr() getattr() setattr() 函数使用方法详解
- Longest Increasing Subsequence
- Extjs grid 合并行
- 网络帧分析及总结
- Mysql海量数据存储和解决方案之一—分布式DB方案
- 获取透视摄像机的可视区域