pax patch

Jens Kasten <[email protected]>
Newsgroups gmane.linux.rsbac
Message-ID <[email protected]>
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

_______________________________________________
rsbac mailing list
[email protected]
http://www.rsbac.org/mailman/listinfo/rsbac
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.