This patch against lsm-2.4 is a backport of the changes accepted into the 2.5/6 kernel. It moves the security_d_instantiate hook call in d_instantiate. This change allows a security module to be able to internally call the getxattr inode operation, which uses a dentry parameter, from this hook to obtain a security label. The new 2.4-based SELinux (a backport of the 2.6-based SELinux) depends on these, so we'd like to get them into the lsm-2.4 tree so that we can also merge the new 2.4-based SELinux into it. For reference see Steve's LSM email of 28 April 2003. http://mail.wirex.com/pipermail/linux-security-module/2003-April/4329.html If there are no objections, I will ask Steve to merge it. dcache.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/fs/dcache.c b/fs/dcache.c --- a/fs/dcache.c Thu Sep 25 15:19:46 2003 +++ b/fs/dcache.c Thu Sep 25 15:19:46 2003 @@ -652,12 +652,12 @@ void d_instantiate(struct dentry *entry, struct inode * inode) { if (!list_empty(&entry->d_alias)) BUG(); - security_d_instantiate(entry, inode); spin_lock(&dcache_lock); if (inode) list_add(&entry->d_alias, &inode->i_dentry); entry->d_inode = inode; spin_unlock(&dcache_lock); + security_d_instantiate(entry, inode); } /** -- James Carter <jwcart2@private> National Security Agency
This archive was generated by hypermail 2b30 : Fri Sep 26 2003 - 08:25:52 PDT