I fixed the init script to set the perms I want on the /dev/i2c files but I can’t seem to get the sepolicy changes to work. I put a priv_app.te file in the device/linaro/hikey/sepolicy dir that contains the following:
allow priv_app i2c_device:chr_file { read write };
But it does not seem to take effect. I dumped the policy file and it seems like it munged my policy up:
allow priv_app_26_0 i2c_device_26_0:chr_file { read write };
where does the _26_0 come from and how can I make it go away?
Thanks,
Mike