2021-09-21 14:32:24 +02:00
|
|
|
# Make ART inputs and outputs available to the CompOS VM
|
|
|
|
type compos_fd_server, domain, coredomain;
|
|
|
|
|
2021-11-30 23:21:06 +01:00
|
|
|
# Allow access to open fds inherited from composd
|
|
|
|
allow compos_fd_server composd:fd use;
|
|
|
|
|
2021-12-14 14:30:23 +01:00
|
|
|
# Allow creating new files and directories in the staging directory.
|
2021-11-30 23:21:06 +01:00
|
|
|
allow compos_fd_server apex_art_staging_data_file:dir create_dir_perms;
|
|
|
|
allow compos_fd_server apex_art_staging_data_file:file create_file_perms;
|
|
|
|
|
2021-12-14 14:30:23 +01:00
|
|
|
# Allow creating new files and directories in the artifacts directory.
|
|
|
|
allow compos_fd_server apex_art_data_file:dir create_dir_perms;
|
|
|
|
allow compos_fd_server apex_art_data_file:file create_file_perms;
|
|
|
|
|
2021-10-04 10:34:30 +02:00
|
|
|
# Use a pipe to signal readiness
|
2021-11-30 23:21:06 +01:00
|
|
|
allow compos_fd_server composd:fifo_file write;
|
2021-10-04 10:34:30 +02:00
|
|
|
|
2021-09-21 14:32:24 +02:00
|
|
|
# TODO(b/196109647) - remove this when no longer needed by minijail
|
2021-11-30 23:21:06 +01:00
|
|
|
allow compos_fd_server composd:fifo_file read;
|
2021-09-21 14:32:24 +02:00
|
|
|
|
|
|
|
# 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 };
|
|
|
|
|
2022-01-24 21:15:07 +01:00
|
|
|
# Only composd can enter the domain via exec
|
|
|
|
neverallow { domain -composd } compos_fd_server:process transition;
|
2021-09-21 14:32:24 +02:00
|
|
|
neverallow * compos_fd_server:process dyntransition;
|