diff --git a/private/coredomain.te b/private/coredomain.te index 56502472a8a06e25292d2dc56ea9f6d1c891f3b2..04f7a46266c924ba05672b354ea2669a26965f7f 100644 --- a/private/coredomain.te +++ b/private/coredomain.te @@ -169,12 +169,12 @@ full_treble_only(` }{ usbfs binfmt_miscfs }:file no_rw_file_perms; ') -# Following /dev nodes must not be directly accessed by coredomain after Treble, -# but should instead be wrapped by HALs. -full_treble_only(` - neverallow coredomain { - iio_device - radio_device - tee_device - }:chr_file { open read append write ioctl }; -') +# Following /dev nodes must not be directly accessed by coredomain, but should +# instead be wrapped by HALs. +neverallow coredomain { + iio_device + radio_device + # TODO(b/120243891): HAL permission to tee_device is included into coredomain + # on non-Treble devices. + full_treble_only(`tee_device') +}:chr_file { open read append write ioctl };