17 Sep 2011 21:24
pax patch
Jens Kasten <jens <at> kasten-edv.de>
2011-09-17 19:24:16 GMT
2011-09-17 19:24:16 GMT
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
(Continue reading)
RSS Feed