Re: jail getfsstat patches.

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Fri, 2 Jul 2004 11:57:21 +0200
On Fri, Jul 02, 2004 at 07:52:29AM +0000, Bjoern A. Zeeb wrote:
+> On Sun, 27 Jun 2004, Pawel Jakub Dawidek wrote:
+> > +> If you give me a few days (maybe I'll be ready today) I'll try to prepare
+> > +> patch to commit so we can review it together.
+> >
+> > Ok, here it goes:
+> >
+> > 	http://people.freebsd.org/~pjd/patches/jail_enforce_statfs.patch
+> 
+> 
+> in prison_canseemount shouldn't it be (pasted in by hand):
+> 
+>            * Be sure that we don't have situation where jail's root directory
+>            * is "/some/path" and mount point is "/some/pathpath".
+>            */
+> -         if (*sp->f_mntonname != '\0' && *sp->f_mntonname != '/')
+> +         if (*(sp->f_mntonname+len) != '\0' && *(sp->f_mntonname+len) != '/')
+>                   return (ENOENT);
+>           return (0);

Yes, fixed, thanks!

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd_at_FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Fri Jul 02 2004 - 14:48:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:00 UTC