[PATCH v1] shebang: restrict python interactive prompt/interpreter
From: penguin-kernel@I-love.SAKURA.ne.jp (Tetsuo Handa)
Date: 2017-06-09 15:23:37
From: penguin-kernel@I-love.SAKURA.ne.jp (Tetsuo Handa)
Date: 2017-06-09 15:23:37
Mimi Zohar wrote:
quoted
quoted
+ ret = kern_path(p, LOOKUP_FOLLOW, &path); + if (!ret) { + struct inode *inode = d_backing_inode(path.dentry); + + inode_list[total] = inode->i_ino; + pr_info("pathname:%s i_ino: %lu\n", + p, inode_list[total]);Leaking reference to "struct path".kern_path() is calling "getname_kernel(name)", but that is later freed. I'm not seeing it. What are you referring to?
See tomoyo_realpath_nofollow() for example. Where is path_put()? -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html