pepoとネットワークを語ろう

40年前からこれまでとこれからのネットワークを語る

unionfsのmakeに失敗

2009-02-21 14:16:50 | Linux
ERROR: "security_inode_permission" [fs/unionfs/unionfs.ko] undefined!
WARNING: modpost: Found 4 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] エラー 1
make: *** [modules] エラー 2
以下のurlからpatchを適応
# patch -p1 </root/unionfs-bug.patch
http://osdir.com/ml/file-systems.unionfs.cvs/2007-11/msg00165.html
diff --git a/security/security.c b/security/security.c
index 0e1f1f1..95a6733 100644
--- a/security/security.c
+++ b/security/security.c
@@ -409,6 +409,7 @@ int security_inode_permission(struct inode *inode, int mask, struct na
meidata *n
return 0;
return security_ops->inode_permission(inode, mask, nd);
}
+EXPORT_SYMBOL(security_inode_permission);

int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
{
@@ -518,6 +519,7 @@ int security_file_ioctl(struct file *file, unsigned int cmd, unsigned
long arg)
{
return security_ops->file_ioctl(file, cmd, arg);
}
+EXPORT_SYMBOL(security_file_ioctl);

int security_file_mmap(struct file *file, unsigned long reqprot,
unsigned long prot, unsigned long flags,
--