alistair23-linux/ipc
Eric W. Biederman a2982cc922 vfs: Generalize filesystem nodev handling.
Introduce a function may_open_dev that tests MNT_NODEV and a new
superblock flab SB_I_NODEV.  Use this new function in all of the
places where MNT_NODEV was previously tested.

Add the new SB_I_NODEV s_iflag to proc, sysfs, and mqueuefs as those
filesystems should never support device nodes, and a simple superblock
flags makes that very hard to get wrong.  With SB_I_NODEV set if any
device nodes somehow manage to show up on on a filesystem those
device nodes will be unopenable.

Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2016-06-23 15:41:57 -05:00
..
compat.c
compat_mq.c
ipc_sysctl.c
Makefile
mq_sysctl.c
mqueue.c vfs: Generalize filesystem nodev handling. 2016-06-23 15:41:57 -05:00
msg.c Initialize msg/shm IPC objects before doing ipc_addid() 2015-09-30 12:48:40 -04:00
msgutil.c ipc,msg: drop dst nil validation in copy_msg 2015-11-06 17:50:42 -08:00
namespace.c ipc: Initialize ipc_namespace->user_ns early. 2016-06-23 15:41:53 -05:00
sem.c ipc/sem: make semctl setting sempid consistent 2016-03-22 15:36:02 -07:00
shm.c ipc, shm: make shmem attach/detach wait for mmap_sem killable 2016-05-23 17:04:14 -07:00
syscall.c
util.c tree wide: use kvfree() than conditional kfree()/vfree() 2016-01-22 17:02:18 -08:00
util.h tree wide: use kvfree() than conditional kfree()/vfree() 2016-01-22 17:02:18 -08:00