Date: Thu, 21 Jun 2007 09:41:41 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122075 for review Message-ID: <200706210941.l5L9ff9e017914@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122075 Change 122075 by rdivacky@rdivacky_witten on 2007/06/21 09:41:33 Check for valid flags in faccessat. Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#20 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#20 (text+ko) ==== @@ -2009,6 +2009,8 @@ #endif int faccessat(struct thread *td, struct faccessat_args *args) { + if (args->flags & ~AT_EACCESS) + return (EINVAL); /* XXX: what about mode? */ return kern_accessat(td, args->path, UIO_USERSPACE, args->flags, args->dirfd); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706210941.l5L9ff9e017914>