Verified Commit 37572f56 authored by steadfasterX's avatar steadfasterX 😁
Browse files

universal7870: selinux: fix first call no audio



I was not able to set:

> allow system_suspend hal_audio_default:binder transfer;

as hal_audio_default is part of vendor which is not avail in private
but system_suspend is part of private and not avail in vendor.

this commit fixes the first call on boot issue until I find a better
way fixing that. without this the very first call will loose audio after
some seconds while subsequent calls work fine.

log:

> I auditd  : type=1400 audit(0.0:250): avc: denied { transfer } for comm="suspend@1.0-ser" scontext=u:r:system_suspend:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=1
> I suspend@1.0-ser: type=1400 audit(0.0:250): avc: denied { transfer } for scontext=u:r:system_suspend:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=1
Signed-off-by: steadfasterX's avatarsteadfasterX <steadfasterX@gmail.com>
parent 9ddd37eb
# I was not able to set:
#allow system_suspend hal_audio_default:binder transfer;
# as hal_audio_default is part of vendor which is not avail in private
# but system_suspend is part of private and not avail in vendor.
#
# the following fixes the first call on boot issue until I find a better
# way fixing that:
permissive system_suspend;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment