On 01/14/2013 08:27 AM, Stephen Smalley wrote: > On 01/13/2013 11:15 PM, 董钰 wrote: >> Hello >> I want to set security label(use xattr security.mylabel) of the file in >> Yaffs2 on Android. >> I've been able to use setxattr syscall to set security label, and use >> getxattr syscall to verify the change right after that. >> The problem is that the change is gone when i reboot the emulator.I used >> to try the same process on linux and ext2 filesystem,and the change >> will last like forever. >> >> Is is about the emulator? Or it is all about the support level of xattr >> in Yaffs2? >> >> Thank you for any help. > > What kernel are you using? We had to patch the emulator kernel for SE > Android, back-porting a more recent snapshot of the yaffs2 code that > provides native support for xattrs and applying a further change to > ensure that new inodes are assigned a SELinux attribute on creation. > > Also, how are you invoking the emulator? And which partition are you trying to modify? /data or /system? -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.