On 07/18/2013 07:23 AM, Alex Gerdov wrote:
Hello,

I've tried to label an app I created with my own custom label, but it always gets the "untrusted_app" context.

I've made the following changes:

"type my_app, domain;
app_domain(my_app)"

to app.te and

"user=_app seinfo=release name=com.text.myapp domain=my_app type=platform_app_data_file"

to seapp_contexts

Can anyone please tell me what I'm missing?

Thanks.

Are you signing this new app with a different key then any of release keys in AOSP? The mac_permissions.xml file (external/sepolicy/mac_permissions.xml) maintains a mapping for the various seinfo tags under the protection of the apps signature. It could be that your app's sig is not matching any entry in the mac_permissions.xml file and thus falling into the default bin with seinfo=default.

--
This message was distributed to subscribers of the seandroid-list mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe seandroid-list" without quotes as the message.

Reply via email to