summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorJoe Tanen <joe.tanen@twosixlabs.com>2017-10-25 08:07:26 -0400
committerTom Cherry <tomcherry@google.com>2017-10-26 09:08:11 -0700
commit4bfdcb39329f778c46f73827f213c80b93c4e7d3 (patch)
tree0f1f467b39e750ce7984796b44f2c36bf1f9b221 /libcutils/socket_local_server_unix.cpp
parent1c65e77e6d73b9eee13d913e0b7886c72282e67f (diff)
init: fixed issues related to forking services
Fixed issues related to forking services into new PID + mount namespaces. Remounting rootfs recursively as slave when creating a service in new PID + mount namespaces. This prevents the service from interfering with mount points in the parent namespace. Unmount then mount /proc instead of mounting it with MS_REMOUNT, since MS_REMOUNT is not sufficient to update /proc to the state appropriate for the new PID namespace. Note that the /proc mount options specified here are not the same as those used in the default mount namespace. I kept them consistent with those used in the code prior to this fix. Test: Used custom sleepd service to test init 'namespace' keyword. Tested on angler in oreo-dev - I had to add PID namespaces to the kernel (commit ad82c662). Change-Id: I859104525f82fef3400d5abbad465331fc3d732f
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions