On 7/13/2017 12:51 PM, Serge E. Hallyn wrote: > Quoting Mimi Zohar ([email protected]): >> On Thu, 2017-07-13 at 08:39 -0400, Matt Brown wrote: >> The question is really from a security perspective which is better? >> Obviously, as v2 of the patch set changed from using pathnames to >> inodes, it's pretty clear that I think inodes would be better. Kees, >> Serge, Casey any comments? > Yes, inode seems clearly better. Paths are too easily worked around.
An inode identifies the object, while a pathname identifies the intent. Using the inode will be easier to code and easier to model. Using the pathname will be much more likely to reflect what the human means to accomplish, provided all the idiosyncrasies of the Linux filesystem namespace are taken into account. Ever since the link count on an inode was allowed to exceed 1* this has been difficult to accomplish. ---- * The link count has always been allowed to exceed 1. Then there are symlinks, mount points, overlay filesystems and all manner of other slick features that make the filesystem namespace difficult to deal with from the security standpoint. > -- > To unsubscribe from this list: send the line "unsubscribe > linux-security-module" in > the body of a message to [email protected] > More majordomo info at http://vger.kernel.org/majordomo-info.html >

