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
This commit is contained in:
committed by
Gerrit Code Review
parent
c19c805d3b
commit
78d707cd26
@@ -242,6 +242,8 @@ int map_service(struct rprocpub *rpub)
|
||||
struct dmap *fdp, *sdp;
|
||||
struct fproc *rfp;
|
||||
|
||||
if (IS_RPUB_BOOT_USR(rpub)) return(OK);
|
||||
|
||||
/* Process is a service */
|
||||
if (isokendpt(rpub->endpoint, &slot) != OK) {
|
||||
printf("VFS: can't map service with unknown endpoint %d\n",
|
||||
|
||||
Reference in New Issue
Block a user