On 06/12/2014 08:41 AM, Stephen Smalley wrote: > On 06/12/2014 03:08 AM, Dinesh Garg wrote: >>>> Is that good enough or do you need this to be done for all device >> nodes automatically when >> created by ueventd? >> I am not sure about the need to do it for all device. While setting the >> symlink, i get the corresponding device and then label from policy and >> use setfilecon to apply it. Is my understanding correct ? > > If we create a patch for system/core/init, can you test it with your > setup to see if it resolves your issue?
The code changes for external/libselinux and system/core are: https://android-review.googlesource.com/#/c/97701/ and https://android-review.googlesource.com/#/c/97721/ and a change to test the support on hammerhead is: https://android-review.googlesource.com/#/c/97750/ The latter rewrites the file_contexts entries for hammerhead to use the /dev/block/platform/msm_sdcc.1/by-name/<name> symlink pathnames rather than the /dev/block/mmcblk* real pathnames, thereby demonstrating that the label-by-symlink support works correctly. This allows you to label based on the partition name rather than the partition number. Does that address your issue? _______________________________________________ Seandroid-list mailing list [email protected] To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].
