On Fri, 2012-08-24 at 08:06 -0400, Stephen Smalley wrote: > On Thu, 2012-08-23 at 21:16 -0700, William Roberts wrote: > > Suppose you have a directory in /efs/dir1 that is labeled as X > > > > suppose you create /efs/dir1/B, it is unlabeled... > > > > When I go to system or another partition, the label is inherited from > > the parent, how come it is not like this on efs? > > That would be a bug. What kernel are you using and what type of > filesystem do you have on /efs? The filesystem code has to make a call > to SELinux on inode creation to get the security attribute name and > value, and then set that attribute as part of the inode creation > transaction. The native Linux filesystem types include that support > already. We had to patch yaffs2 to do it. Our patches for yaffs2 can be found in the samsung kernel tree (and goldfish, but that is much larger because we updated it to a newer upstream version of yaffs2 first). We didn't apply them to the tegra or omap kernel trees because none of those devices are enabling yaffs2 in their kernel configurations. I also have a more up-to-date version of the patch for v3.2 and higher that I submitted to the yaffs mailing list for consideration (but no response thus far). -- Stephen Smalley National Security Agency -- 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.