From jens at kasten-edv.de Sat Sep 17 21:24:16 2011 From: jens at kasten-edv.de (Jens Kasten) Date: Sat, 17 Sep 2011 21:24:16 +0200 Subject: [rsbac] pax patch Message-ID: <1316287456.16443.23.camel@malo.jaschtschik.local> 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