Thanks Stephen. -----Original Message----- From: Stephen Smalley [mailto:s...@tycho.nsa.gov] Sent: Friday, July 24, 2015 10:17 PM To: Inamdar Sharif Cc: seandroid-list@tycho.nsa.gov Subject: Re: contextmount_type issue for init
On 07/24/2015 12:44 PM, Stephen Smalley wrote: > On 07/24/2015 12:37 PM, Inamdar Sharif wrote: >> Currently all files in /mnt are getting labelled properly but not this new >> directory. >> >> I am not sure what I am missing here. What do you mean by right options?? > > If using mkuserimg.sh to generate the ext4 image, then the last > optional argument is supposed to be the path to your file_contexts > file so it knows how to label the files within the image. > > If using make_ext4fs directly to generate the ext4 image, then you > need to pass the -a option with mountpoint path (e.g. -a /mnt/abc) and > the -S option with the path to the file_contexts file (e.g. -S file_contexts). > > Then make_ext4fs will look up the files in file_contexts when creating > the image and set the xattrs for you when building the image. No need > to separately restorecon them afterward. > > This is how system.img is labeled during build. BTW, you dropped the list from the cc line. Restored. ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ----------------------------------------------------------------------------------- _______________________________________________ Seandroid-list mailing list Seandroid-list@tycho.nsa.gov To unsubscribe, send email to seandroid-list-le...@tycho.nsa.gov. To get help, send an email containing "help" to seandroid-list-requ...@tycho.nsa.gov.