最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

Howtoaddtheselinuxpolicyaccessforthenewcreatedlin

来源:动视网 责编:小采 时间:2020-11-09 07:43:05
文档

Howtoaddtheselinuxpolicyaccessforthenewcreatedlin

Howtoaddtheselinuxpolicyaccessforthenewcreatedlin:When you create the linux file node, such as dev/nfccard0, you must add the selinux policy for it, or the application can not get the permit to access. this is an example for th
推荐度:
导读Howtoaddtheselinuxpolicyaccessforthenewcreatedlin:When you create the linux file node, such as dev/nfccard0, you must add the selinux policy for it, or the application can not get the permit to access. this is an example for th


When you create the linux file node, such as “dev/nfccard0”, you must add the selinux policy for it, or the application can not get the permit to access. this is an example for the system_server to accecc the dev/nfccard0 file node. we c

When you create the linux file node, such as “dev/nfccard0”, you must add the selinux policy for it, or the application can not get the permit to access.

this is an example for the system_server to accecc the dev/nfccard0 file node.

we can do the following three things to mak the system work smoothly.

1 define the file type

in the file.te add the below line

type nfccard_device,dev_type

2 define the file context

in the file_context.te add the below line

/dev/nfccard0 u:object_r:nfccard_devicd:s0

3 allow the system_server to access it.

Allow system_server nfccard_device:chr_file rw_file_perms

Or

Allow system_server nfccard_device:chr_file {read write open getattr ioctl}

there are many file type , {socket, binder, property,etc}, we must do carefully to avoid influence the system.

文档

Howtoaddtheselinuxpolicyaccessforthenewcreatedlin

Howtoaddtheselinuxpolicyaccessforthenewcreatedlin:When you create the linux file node, such as dev/nfccard0, you must add the selinux policy for it, or the application can not get the permit to access. this is an example for th
推荐度:
标签: linux the to
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top