As title, I am trying to figure out a way to give a binary executable `create_logs` the right selinux context. I have added the domain transition and permissions, however due to the category of certain objects, avc denials appear as below.
```
avc: denied { open } for path="/data/user/10/com.android.dreams.basic" dev="vdb" ino=4260006 scontext=u:r:create_logs:s0 tcontext=u:object_r:app_data_file:s0:c39,c256,c522,c768 tclass=dir permissive=1
```
where I have added
```
allow create_logs app_data_file:dir open
```
I realize that create_logs needs to have the same category of app_data_file, but since my executable is started from the rc script, there isn't a graceful way for me to assign the categories without hardcoding. Can I get some help here?