On 06/27/2014 06:02 AM, Stefan Fischer wrote:
> Hi
> 
> I have added a new library to the /system/lib folder. The selinux
> context is set by the file_contexts:
> 
> /system/lib(/.*)?    u:object_r:system_library_file:s0
> 
> Why does my added library not inherit this context, it is set to
> u:object_r:unlabeled:s0. All other files in the folder are set
> appropriate. I added the file by a recovery image without selinux
> support, but this should not matter, because the context is set on
> system boot. 
> The DAC permissions are equal to the original files. Is there an
> additional list where every single file is handeled?

No, the context would normally be set by the recovery.  /system files
are labeled at build time by make_ext4fs or on update by the recovery
updater, based on file_contexts.

restorecon_recursive is only applied on boot to partitions such as /data
and /persist, not to /system.  /system is mounted read-only (and current
AOSP master policy further prohibits writing to it).




_______________________________________________
Seandroid-list mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to 
[email protected].

Reply via email to