thank you for your answer. i'm very new into these sepolicy/selinux topics, so sry for following possibly dumb questions.
the background of my question is: following these tutorial https://devarea.com/android-hidl-and-project-treble/#.Xs49WRaxU5n I introduced an own hal interface. let's assume it is called xyz. following the pattern of all other hal interfaces, every hal interface do have a .te file. like hal_vehicle.te, hal_power.te, .. now i assume to get my xyz hal service running and recognized, i do have to add its own .te file. i tried to copy paste the hal_vehicle.te content into hal_xyz.te (with: hal_xyz_server, hal_xyz_client), for hoping that would do it. but while compile aosp, i get an error telling me it doesnt know hal_xyz_client and hal_xyz_server. so, where do I start to let him know/introduce my own hal_xyz_client (label) and hal_xyz_server. again, sry if my assumptions are dumb. I don't have any direction yet, to understand it. thx On Wednesday, June 10, 2020 at 6:10:43 PM UTC+2, Wesolowski, Krzysztof wrote: > > Those names are "macro concatenated" in AOSP code *.te files. You can > start with te_macros and hal_attribute. > > > https://cs.android.com/android/platform/superproject/+/master:system/sepolicy/public/te_macros;drc=356b98d552e8b6f1936c045cb1a681dfbcd485ee;l=209 > > BR, K. > ------------------------------ > *From:* [email protected] <javascript:> < > [email protected] <javascript:>> on behalf of icould icould < > [email protected] <javascript:>> > *Sent:* Wednesday, June 10, 2020 14:35 > *To:* Android Building <[email protected] <javascript:>> > *Subject:* [android-building] Where are hal_vehicle_client and > hal_vehicle_server in hal_vehicle.te defined? > > I'm trying to understand how HAL is implemented and took hal_vehicle as an > example. > in > https://cs.android.com/android/platform/superproject/+/master:system/sepolicy/public/hal_vehicle.te;l=1?q=hal_vehicle.te&sq= > > > hal_vehicle_server and hal_vehicle_client are mentioned in the binder > call. but where and who does introduce/define them, at what place and time? > I did a whole fulltext search but could not find a place where they are > set. > > I hope you can give me some advice. > > thx > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > <javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fandroid-building%3Fhl%3Den&data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7Cb979c9393bc24d57000e08d80d52a8ae%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C1%7C637273995955056466&sdata=NSyBgO8lWubScmsqiGSLOYpcY%2BaloE2YIjzYTIXOzn4%3D&reserved=0> > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-building/72bc0fdf-373c-41cc-92b2-df5c40245ecfo%40googlegroups.com > > <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fandroid-building%2F72bc0fdf-373c-41cc-92b2-df5c40245ecfo%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7Cb979c9393bc24d57000e08d80d52a8ae%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C1%7C637273995955066465&sdata=Cvl3StOMW2gKWnw%2BHeDkiSXZANj9z2hO2leU47LE1io%3D&reserved=0> > . > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/be807725-adaa-4952-99ca-c730d8950fb3o%40googlegroups.com.
