]> git.baikalelectronics.ru Git - kernel.git/commit
coda: Restrict coda messages to the initial pid namespace
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 31 Jan 2013 02:50:54 +0000 (18:50 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 14:00:52 +0000 (06:00 -0800)
commit5b759a99f7dc85335816436c4d7c1a7dd92a51d8
treeab037487925db629c9e3c5b45475f0e97954fd1d
parentecd9cf2253d2bf9105acaa422ab75950b8c8cfe0
coda: Restrict coda messages to the initial pid namespace

Remove the slight chance that pids in coda messages will be
interpreted in the wrong pid namespace.

- Explicitly send all pids in coda messages in the initial pid
  namespace.
- Only allow mounts from processes in the initial pid namespace.
- Only allow processes in the initial pid namespace to open the coda
  character device to communicate with coda.

Cc: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/coda/inode.c
fs/coda/psdev.c
fs/coda/upcall.c