]> Zhao Yanbai Git Server - minix.git/commit
VM: support for shared call mask ACLs 17/717/3
authorDavid van Moolenbroek <david@minix3.org>
Wed, 7 Aug 2013 20:03:47 +0000 (22:03 +0200)
committerGerrit Code Review <gerrit@gerrit>
Thu, 8 Aug 2013 21:22:58 +0000 (23:22 +0200)
commit78d707cd26178e2955ca512cf2381f64ef51b01d
tree49cabebecc06331f52fa7ed9832c74a372fb7b35
parentc19c805d3bf3c5f7903ebd6bcae5fc4ad45c4cfe
VM: support for shared call mask ACLs

The VM server now manages its call masks such that all user processes
share the same call mask. As a result, an update for the call mask of
any user process will apply to all user processes. This is similar to
the privilege infrastructure employed by the kernel, and may serve as
a template for similar fine-grained restrictions in other servers.

Concretely, this patch fixes the problem of "service edit init" not
applying the given VM call mask to user processes started from RC
scripts during system startup.

In addition, this patch makes RS set a proper VM call mask for each
recovery script it spawns.

Change-Id: I520a30d85a0d3f3502d2b158293a2258825358cf
16 files changed:
include/minix/com.h
include/minix/rs.h
include/minix/vm.h
lib/libminlib/vm_set_priv.c
servers/rs/manager.c
servers/rs/request.c
servers/vfs/dmap.c
servers/vm/Makefile
servers/vm/acl.c [new file with mode: 0644]
servers/vm/exit.c
servers/vm/fork.c
servers/vm/main.c
servers/vm/proto.h
servers/vm/rs.c
servers/vm/utility.c
servers/vm/vmproc.h