diff options
author | Vishal Mahaveer <vishalm@ti.com> | 2017-04-24 16:37:40 -0400 |
---|---|---|
committer | Vishal Mahaveer <vishalm@ti.com> | 2017-04-24 16:37:40 -0400 |
commit | c3ab2febd0b7bd4f856590c84a4166e0f18a6bcb (patch) | |
tree | 4d6df4bb0219eed1eb2671da12dc26a1a6c2bdc1 | |
parent | 8d26e6a29b26b383bc82d3b5eec3d0464f84893c (diff) | |
download | jacinto6evm-c3ab2febd0b7bd4f856590c84a4166e0f18a6bcb.tar.gz |
jacinto6evm: sepolicy: update i2c device definitions
Remove duplicate defenition of i2c device type, it is now defined
in core selinux policies. This also resolves the build issue
with Nougat MR2.
Change-Id: I90b36b33afe4f1c1bf73edff772f5352402fbb1b
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r-- | sepolicy/device.te | 1 | ||||
-rw-r--r-- | sepolicy/file_contexts | 3 | ||||
-rw-r--r-- | sepolicy/vis.te | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/sepolicy/device.te b/sepolicy/device.te index db470f0..6fb408e 100644 --- a/sepolicy/device.te +++ b/sepolicy/device.te @@ -3,4 +3,3 @@ type rtc, dev_type; type hwspinlock_dev, dev_type; type uio_dev, dev_type; type cmem_dev, dev_type; -type i2c_dev, dev_type; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index dc20edc..8988df2 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -36,9 +36,6 @@ #VIS (RadioApp) /system/bin/RadioApp u:object_r:vis_exec:s0 -#I2C -/dev/i2c-[0-9]+ u:object_r:i2c_dev:s0 - #CMEM /dev/cmem u:object_r:cmem_dev:s0 diff --git a/sepolicy/vis.te b/sepolicy/vis.te index d8cbb7a..7f1356c 100644 --- a/sepolicy/vis.te +++ b/sepolicy/vis.te @@ -17,4 +17,4 @@ allow vis cmem_dev:chr_file { rw_file_perms }; allow vis hwspinlock_dev:chr_file { rw_file_perms }; # Allow access to I2C for audio codec configuration -allow vis i2c_dev:chr_file { rw_file_perms }; +allow vis i2c_device:chr_file { rw_file_perms }; |