PERFORCE change 122075 for review

Roman Divacky rdivacky at FreeBSD.org
Thu Jun 21 09:41:42 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=122075

Change 122075 by rdivacky at 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);
 }


More information about the p4-projects mailing list