Hi,
I am trying to implement the example Serial app code provide in Emteria github on a Raspberry Pi Compute Module 4. I have updated the code to use sushell instead of su. But i am getting the following errors
type=1400 audit(0.0:2024): avc: denied { read } for name="ttyS0" dev="tmpfs" ino=406 scontext=u:r:untrusted_app_27:s0:c97,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.emteria.serial
type=1400 audit(0.0:2025): avc: denied { write } for name="ttyS0" dev="tmpfs" ino=406 scontext=u:r:untrusted_app_27:s0:c97,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.emteria.serial
type=1400 audit(0.0:2026): avc: denied { open } for path="/dev/ttyS0" dev="tmpfs" ino=406 scontext=u:r:untrusted_app_27:s0:c97,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.emteria.serial
type=1400 audit(0.0:2027): avc: denied { ioctl } for path="/dev/ttyS0" dev="tmpfs" ino=406 ioctlcmd=0x5401 scontext=u:r:untrusted_app_27:s0:c97,c256,c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 app=com.emteria.serial
Kindly let me know how to resolve for the same.
Regards
Sai Ram