edgelab | Materials to build and deploy a simple Edge Lab | Continuous Deployment library
kandi X-RAY | edgelab Summary
kandi X-RAY | edgelab Summary
Materials to build and deploy a simple Edge Lab for demonstration, training and development
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of edgelab
edgelab Key Features
edgelab Examples and Code Snippets
Community Discussions
Trending Discussions on edgelab
QUESTION
I want witch /dev/i2c-1
device to be outside the SELinux security policy on Android 10.
I have the source code for Android 10. I tried creating a .te
file in /device/thales/mt8768q/sepolicy/edgelab.te
In foo.te, I added a similar example to the site: https://source.android.com/security/selinux/customize.
...ANSWER
Answered 2021-Jun-04 at 02:04Your should define your domain and label.
Define your dev_type (device/"manufacturer"/"device-name"/sepolicy/"your-filename".te):
type i2c-1_device, dev_type;
Label file with your type (device/"manufacturer"/"device-name"/sepolicy/file_contexts):
/dev/i2c-1/* u:object_r:i2c-1_device:s0
Define your rule (device/"manufacturer"/"device-name"/"your-filename".te):
allow domain i2c-1_device:chr_file rw_file_perms
You'd better define your domain and restrict only your domain can access i2c-1_device. The example define an dhcp domain, it's an good example.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install edgelab
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page