Alan Stokes | ec4a90f | 2021-09-21 13:32:24 +0100 | [diff] [blame^] | 1 | # Make ART inputs and outputs available to the CompOS VM |
| 2 | type compos_fd_server, domain, coredomain; |
| 3 | |
| 4 | # Allow access to open fds inherited from odrefresh - read inputs, generate outputs |
| 5 | allow compos_fd_server odrefresh:fd use; |
| 6 | allow compos_fd_server apex_art_data_file:file { getattr read }; |
| 7 | allow compos_fd_server apex_art_staging_data_file:file { getattr read write }; |
| 8 | # TODO(b/196109647) - remove this when no longer needed by minijail |
| 9 | allow compos_fd_server odrefresh:fifo_file read; |
| 10 | |
| 11 | # Create a listening vsock for the VM to connect back to |
| 12 | allow compos_fd_server self:vsock_socket { create_socket_perms_no_ioctl listen accept }; |
| 13 | |
| 14 | # Only odrefresh can enter the domain via exec |
| 15 | neverallow { domain -odrefresh } compos_fd_server:process transition; |
| 16 | neverallow * compos_fd_server:process dyntransition; |