Official MINIX sources - Automatically replicated from gerrit.minix3.org
Go to file
David van Moolenbroek 0eb6caa076 VFS: disallow opening files of unsupported types
Any attempt to use open(2) to open a socket file now fails with
EOPNOTSUPP, as is common and in the process of being standardized.
The behavior and error code is now tested in test56.

Any attempt to open a file of which the type is not known to VFS
(e.g., as a result of bogus file system contents) now fails with EIO.
For now, this is a safety feature, to prevent VFS tripping over such
types in unchecked cases.  In the future, a proper VFS code audit
should determine whether we can lift this restriction again, although
it does not seem particularly useful to be able to open files of
unknown types anyway.  Another error code may be assigned to this case
later, too.

Change-Id: Ib4cb4341eec954f0448fe469ecf28bd78edebde2
2016-08-05 11:14:29 +00:00
bin Import NetBSD ps(1) 2016-01-13 20:32:52 +01:00
common w(1): switch to libkvm 2016-01-13 20:32:50 +01:00
crypto Fix ARM noassert builds -g/-O{s/0/1/2/3} 2016-01-24 18:56:38 +01:00
dist/pf/sbin/pfctl Import a subset of PF distribution files 2016-06-18 12:20:46 +00:00
distrib Clean up traces from long-gone sys_int86 interface 2016-07-20 19:00:44 +02:00
docs Import locale tools and ressource files 2016-07-09 12:18:33 +02:00
etc Import locale tools and ressource files 2016-07-09 12:18:33 +02:00
external Typo in hardfloat command-line fixup/replacement 2016-07-02 13:18:46 +02:00
games Fix ARM noassert builds -g/-O{s/0/1/2/3} 2016-01-24 18:56:38 +01:00
gnu gnu/texinfo: Disable -Werror for clang 2016-07-09 12:11:26 +02:00
include Start using sysctl(3) throughout userland 2016-01-13 20:32:45 +01:00
lib Import locale tools and ressource files 2016-07-09 12:18:33 +02:00
libexec ld.elf_so: sysctl support uncommented 2016-01-16 14:04:24 +01:00
minix VFS: disallow opening files of unsupported types 2016-08-05 11:14:29 +00:00
releasetools made minix3 bootable via EFI 2016-07-02 13:43:03 +02:00
sbin Fix ARM noassert builds -g/-O{s/0/1/2/3} 2016-01-24 18:56:38 +01:00
share Preparations for PAE support 2016-08-04 09:24:42 +02:00
sys Do not hide the MSG_NOSIGNAL flag 2016-06-18 12:20:48 +00:00
tests tests: add most kyua kernel tests 2016-01-16 14:04:25 +01:00
tools Import locale tools and ressource files 2016-07-09 12:18:33 +02:00
usr.bin Import locale tools and ressource files 2016-07-09 12:18:33 +02:00
usr.sbin Adapt MINIX-specific part of tools/installboot 2016-08-03 08:09:00 +02:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview build:update 'git review' config to match gerrit.minix3.org 2014-07-28 17:05:15 +02:00
build.sh NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
Makefile.inc Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00