ad6e12644c
We pass the write end of a pipe to fd_server which it uses to signal when it is ready to serve. Bug: 201764092 Test: atest ComposTestCase Change-Id: Id952e953e79f6cef9c8f0c847a303a3a854f2248
19 lines
889 B
Text
19 lines
889 B
Text
# Make ART inputs and outputs available to the CompOS VM
|
|
type compos_fd_server, domain, coredomain;
|
|
|
|
# Allow access to open fds inherited from odrefresh - read inputs, generate outputs
|
|
allow compos_fd_server odrefresh:fd use;
|
|
allow compos_fd_server apex_art_data_file:file { getattr read };
|
|
allow compos_fd_server apex_art_staging_data_file:file { getattr read write };
|
|
# Use a pipe to signal readiness
|
|
allow compos_fd_server odrefresh:fifo_file write;
|
|
|
|
# TODO(b/196109647) - remove this when no longer needed by minijail
|
|
allow compos_fd_server odrefresh:fifo_file read;
|
|
|
|
# Create a listening vsock for the VM to connect back to
|
|
allow compos_fd_server self:vsock_socket { create_socket_perms_no_ioctl listen accept };
|
|
|
|
# Only odrefresh can enter the domain via exec
|
|
neverallow { domain -odrefresh } compos_fd_server:process transition;
|
|
neverallow * compos_fd_server:process dyntransition;
|