[PATCH v1] shebang: restrict python interactive prompt/interpreter
Tetsuo Handa
penguin-kernel at I-love.SAKURA.ne.jp
Fri Jun 9 15:23:37 UTC 2017
Mimi Zohar wrote:
> > > + 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
More information about the Linux-security-module-archive
mailing list