Jens Kasten | 17 Sep 21:24 2011
Picon

pax patch

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)


Gmane