HI,
I am trying to integrate selinux to our project. I are working on RMD5_RDK, with linux kernel version 2.6.37 and debian rootfile system. We are using UBIFS filesystem.
The steps that I follwed are,
1)Adding security.selinux XATTR(extended attributes) support for the UBIFS.
I applied the patch that I got from http://lists.infradead.org/pipermail/linux-mtd/2011-October/038085.html. After applying the patch I enabled CONFIG_UBIFS_FS_XATTR , I was able to build the kernel.
But I am getting error in ubifs_init_security. security_inode_init_security(inode, dir, qname, &name,&value,&len) returns error EOPNOTSUPP.
Then after looking closely, in the function I am passing 6 parameters, but in my kernel in security/security.c, the function had 5 parameters as shown
int security_inode_init_security(struct inode *inode, struct inode *dir,
char **name, void **value, size_t *len)
{
if (unlikely(IS_PRIVATE(inode)))
return -EOPNOTSUPP;
return security_ops->inode_init_security(inode, dir, name, value, len);
}
So it does not take "qname" which is of type "const struct qstr *qname = &dentry->d_name;"
So I modified my patch into security_inode_init_security(inode, dir, &name,&value,&len), I removed qname parameter since it was not present in security/security.c.
Even then I am getting error. security_inode_init_security returns EOPNOTSUPP.
Any inputs would be helpful.