[rsbac] pax patch
Jens Kasten
jens at kasten-edv.de
Sat Sep 17 21:24:16 CEST 2011
Hi list,
i try the pax patch-20 on 3.0.4.
I have now the follow situation:
The pax patch want modify this part from fs/namei.c
- if (copy_to_user(buffer, link, len))
+
+ if (len < sizeof(tmpbuf)) {
+ memcpy(tmpbuf, link, len);
+ newlink = tmpbuf;
+ } else
+ newlink = link;
+
+ if (copy_to_user(buffer, newlink, len))
but on this place did rsbac a modification too.
#ifdef CONFIG_RSBAC_SYM_REDIR
rsbac_name = rsbac_symlink_redirect(dentry->d_inode, link,
buflen);
if (rsbac_name) {
len = strlen(rsbac_name);
if (copy_to_user(buffer, rsbac_name, len))
len = -EFAULT;
kfree(rsbac_name);
}
else
#endif
if (copy_to_user(buffer, link, len))
So I think the pax stuff has put befor the ifdef from rsabc and change
the part
rsbac_name = rsbac_symlink_redirect(dentry-d_inode, newlink, buflen);
The question is in how far this does influence each other.
Grüße
Jens
More information about the rsbac
mailing list