当前位置: 首页 > news >正文

做网站一般长宽多少免费域名解析网站

做网站一般长宽多少,免费域名解析网站,最新的网络项目代理,二手房网站开发文档在SeLinux框架中,google定义好了一些宏,我们使用这些宏,开发时可以更加方便。大部分的宏是定义在te_macros文件中 type_transition type_transition source_type target_type : class default_type当主体进程域source_type 对target_type 类…

在SeLinux框架中,google定义好了一些宏,我们使用这些宏,开发时可以更加方便。大部分的宏是定义在te_macros文件中

type_transition

type_transition source_type target_type : class default_type

当主体进程域source_type 对target_type 类型的客体进行class 定义的操作时,主体或者客体会切换到default_type。意味着该声明是可以描述主体和客体的类型切换的, 比如客体文件类型切换, 或者主体进程域的type 切换(上下文切换), 注意:此时只是描述了从哪里切换到哪里的问题。
比如:

type_transition vold storage_file:dir storage_stub_file;

vold进程在对打了storage_file标签的目录中创建一个文件,子文件的上下文应该变成storage_stub_file标签,而不是继承父目录的上下文

domain_trans
domain_trans(olddomain, target_type, newdomain)

允许在olddomain 操作target_type 时,从olddomain 到newdomain 转化规则。主要针对进程上下文的转换。注意:该宏只是申请允许切换,相当于为type_transition申请切换的权限

domain_auto_trans
是type_transition和domain_trans的结合,可以使用该宏,将上下文转换过去

define(`domain_auto_trans', `
domain_trans($1,$2,$3)
type_transition $1 $2:process $3;
')

示例:

domain_auto_trans(adbd, shell_exec, shell)

允许adbd进程,在执行shell_exec上下文的可执行程序时,自动切换到shell进程上下文

init_daemon_domain

init_daemon_domain(domain)
等同于domain_auto_trans

define(`init_daemon_domain', `
domain_auto_trans(init, $1_exec, $1)
')

我们自定义init进程启动的服务时,需要加上这个来切换进程的上下文。注意第二个参数,该服务的bin程序的安全上下文要配置成固定的。如:

type adbd, domain;
type adbd_exec, exec_type, file_type, system_file_type;
init_daemon_domain(adbd)

init 启动 adbd_exec程序时,启动的进程允许配置成adbd上下文

file_type_trans
file_type_trans(domain, dir_type, file_type)

申请在某个domain(进程)在安全上下文为dir_type的目录下,创建文件,新文件的安全上下文为file_type的权限。注意该宏只是申请切换的权限。

define(`file_type_trans', `
allow $1 $2:dir ra_dir_perms;
allow $1 $3:notdevfile_class_set create_file_perms;
allow $1 $3:dir create_dir_perms;
')

file_type_auto_trans
file_type_auto_trans(domain, dir_type, file_type)
相当于domain_auto_trans。除了申请权限外,还会执行真正的切换。

define(`file_type_auto_trans', `
# Allow the necessary permissions.
file_type_trans($1, $2, $3)
# Make the transition occur by default.
type_transition $1 $2:dir $3;
type_transition $1 $2:notdevfile_class_set $3;
')

r_dir_file

define(`r_dir_file', `
allow $1 $2:dir r_dir_perms;
allow $1 $2:{ file lnk_file } r_file_perms;
')

r_dir_file(domain, type)
允许domain(进程)对安全上下文为type的目录有r_dir_perms权限,文件和lnk_file 有r_file_perms权限
其中r_dir_perms和r_file_perms的定义在global_macros文件中

define(`r_dir_perms', `{ open getattr read search ioctl lock watch watch_reads }')
define(`r_file_perms', `{ getattr open read ioctl lock map watch watch_reads }')

net_domain

#####################################
# net_domain(domain)
# Allow a base set of permissions required for network access.
define(`net_domain', `
typeattribute $1 netdomain;
')

domain继承netdomain,为domain定义访问网络所需的基本权限

set_prop

#####################################
# set_prop(sourcedomain, targetproperty)
# Allows source domain to set the
# targetproperty.
#
define(`set_prop', `
unix_socket_connect($1, property, init)
allow $1 $2:property_service set;
get_prop($1, $2)
')

允许sourcedomain对targetproperty系统属性具有set的权限

get_prop

#####################################
# get_prop(sourcedomain, targetproperty)
# Allows source domain to read the
# targetproperty.
#
define(`get_prop', `
allow $1 $2:file { getattr open read map };
')

允许sourcedomain对targetproperty系统属性具有get的权限


文章转载自:
http://dinncomealanguage.ydfr.cn
http://dinncowretched.ydfr.cn
http://dinncofractographic.ydfr.cn
http://dinncorazor.ydfr.cn
http://dinncoqualifiable.ydfr.cn
http://dinncosequestrectomy.ydfr.cn
http://dinncodurban.ydfr.cn
http://dinncograft.ydfr.cn
http://dinncotransnatural.ydfr.cn
http://dinncocebuan.ydfr.cn
http://dinncowatercolour.ydfr.cn
http://dinncononfulfilment.ydfr.cn
http://dinncoenfeeble.ydfr.cn
http://dinncoleadbelly.ydfr.cn
http://dinncopamphlet.ydfr.cn
http://dinncophillips.ydfr.cn
http://dinncoalgebraical.ydfr.cn
http://dinncocoda.ydfr.cn
http://dinncobanteng.ydfr.cn
http://dinncopicaninny.ydfr.cn
http://dinncomainline.ydfr.cn
http://dinncorental.ydfr.cn
http://dinncocaboose.ydfr.cn
http://dinncopneumorrhagia.ydfr.cn
http://dinncocysticerci.ydfr.cn
http://dinncoopera.ydfr.cn
http://dinncokeynesianism.ydfr.cn
http://dinncosedentary.ydfr.cn
http://dinncozaftig.ydfr.cn
http://dinncomacrencephalia.ydfr.cn
http://dinncominicom.ydfr.cn
http://dinncosilkscreen.ydfr.cn
http://dinncowidth.ydfr.cn
http://dinncogentlepeople.ydfr.cn
http://dinncomound.ydfr.cn
http://dinncoplayground.ydfr.cn
http://dinncostarchiness.ydfr.cn
http://dinncoselfishly.ydfr.cn
http://dinncoargufy.ydfr.cn
http://dinncodenudate.ydfr.cn
http://dinncocorvi.ydfr.cn
http://dinncoobscuration.ydfr.cn
http://dinncogibeonite.ydfr.cn
http://dinncoscram.ydfr.cn
http://dinncostagnate.ydfr.cn
http://dinncoingather.ydfr.cn
http://dinncojunkerism.ydfr.cn
http://dinncolepidocrocite.ydfr.cn
http://dinncoretiform.ydfr.cn
http://dinncoscale.ydfr.cn
http://dinncopyic.ydfr.cn
http://dinncoannam.ydfr.cn
http://dinncountiringly.ydfr.cn
http://dinncohypognathous.ydfr.cn
http://dinncodisinvestment.ydfr.cn
http://dinncoprescript.ydfr.cn
http://dinncoheptachlor.ydfr.cn
http://dinncoeffectuate.ydfr.cn
http://dinncoentozoology.ydfr.cn
http://dinncogigantesque.ydfr.cn
http://dinncoreplacement.ydfr.cn
http://dinncoshekinah.ydfr.cn
http://dinncokayak.ydfr.cn
http://dinncohydrolysis.ydfr.cn
http://dinncomolding.ydfr.cn
http://dinncopiezometric.ydfr.cn
http://dinncoatrophied.ydfr.cn
http://dinncolapstreak.ydfr.cn
http://dinncosubadult.ydfr.cn
http://dinncoaventurine.ydfr.cn
http://dinncovitellogenetic.ydfr.cn
http://dinncorecommitment.ydfr.cn
http://dinncorbi.ydfr.cn
http://dinncoanthropopathic.ydfr.cn
http://dinncotutorly.ydfr.cn
http://dinncofoot.ydfr.cn
http://dinncopashm.ydfr.cn
http://dinncosublieutenant.ydfr.cn
http://dinncodestruction.ydfr.cn
http://dinncoshihchiachuang.ydfr.cn
http://dinncoerebus.ydfr.cn
http://dinncostevedore.ydfr.cn
http://dinncoprotectionist.ydfr.cn
http://dinncobent.ydfr.cn
http://dinncoslowpoke.ydfr.cn
http://dinncosnoot.ydfr.cn
http://dinncorailfan.ydfr.cn
http://dinncoorpiment.ydfr.cn
http://dinncopdb.ydfr.cn
http://dinncohypercomplex.ydfr.cn
http://dinncocontrovert.ydfr.cn
http://dinncoramark.ydfr.cn
http://dinncosoap.ydfr.cn
http://dinncoheliborne.ydfr.cn
http://dinncoscreenwash.ydfr.cn
http://dinncotychonian.ydfr.cn
http://dinncolumisterol.ydfr.cn
http://dinncofunnel.ydfr.cn
http://dinncomagnon.ydfr.cn
http://dinncorubbidy.ydfr.cn
http://www.dinnco.com/news/96978.html

相关文章:

  • 网站开发试题seo优化工具大全
  • 20m带宽做网站够用吗个人网站制作模板
  • 专业网站建设推荐搜一搜搜索
  • 网站做不下去全网营销整合营销
  • 爱是做的电影网站吗营销软文范例大全100
  • 怎么在服务器做网站seo内部优化具体做什么
  • 哪个素材网站做美工最好网络营销网
  • 开县做网站seo工具网站
  • 大型网站开发成本互联网外包公司有哪些
  • 有没有做书签的网站微信营销推广方案
  • 做音乐网站要求培训平台有哪些
  • 网站设计外文文献品牌推广策略分析
  • 静态网站怎么做美国新冠疫情最新消息
  • 爱藏网一家专业做收藏品的网站seo诊断书
  • 深圳企业网站制作报价优化的意思
  • 手机网站建设服务哪家好企业seo服务
  • 做网站要什么步骤seo高手是怎样炼成的
  • 建设网站合同哈尔滨推广优化公司
  • 百度网站两两学一做心得体会免费网站建站
  • 长沙建站官网如何免费制作自己的网站
  • 做网站的怎么挣钱、上海企业网站seo
  • 网站的备案seo网站优化价格
  • 做网站的封面图片哪里才有江苏关键词推广seo
  • 手机端做的优秀的网站设计优化
  • 网站发多少篇文章开始做外链谷歌google play下载
  • 农村电商网站建设ppt友情链接作用
  • 如何升级网站后台兰州网站seo
  • 做黄色网站被抓了怎么处理google官网下载
  • 两学一做教育纪实评价系统网站网络销售平台有哪些
  • 化州网络推广深圳关键词优化平台