owlsm.h get_empty_inode in 2.4.22
Hi
I tried compiling the patches at www.coker.com.au for 2.4.22 and get an error when trying to compile.
make bzImage
<snip>
-o vmlinuxsecurity/vmlinux-obj.o: In function `tweak_fd_0_1_2':
security/vmlinux-obj.o(.text+0xd24f): undefined reference to `get_empty_inode'
make: *** [vmlinux] Error 1
get_empty_inode was remove in 2.4.20 and replaced with new_inode -struct inode * get_empty_inode(void)
+struct inode * new_inode(struct super_block *sb)
I can get selinux to compile with 2.4.22 by commenting out the following statement in security/owlsm.h but is this ok?
static inline int tweak_fd_open_null(struct linux_binprm *bprm)
{
struct inode *i;
struct dentry *d;
struct file *f;
struct secure_fds *sfds = (struct secure_fds *) bprm->security;/* if(!(i = get_empty_inode()))
return -ENOMEM; */
if(!(d = dget(d_alloc_root(i)))) {
iput(i);
return -ENOMEM;
}--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.