File tree 2 files changed +4
-4
lines changed
prebuilts/api/30.0/public
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -490,8 +490,8 @@ neverallow { domain -kernel with_asan(`-asan_extract') } { system_file_type vend
490
490
neverallow * exec_type:dir_file_class_set mounton;
491
491
neverallow { domain -init } { system_file_type vendor_file_type }:dir_file_class_set mounton;
492
492
493
- # Nothing should be writing to files in the rootfs.
494
- neverallow * rootfs:file { create write setattr relabelto append unlink link rename };
493
+ # Nothing should be writing to files in the rootfs, except recovery .
494
+ neverallow { domain -recovery } rootfs:file { create write setattr relabelto append unlink link rename };
495
495
496
496
# Restrict context mounts to specific types marked with
497
497
# the contextmount_type attribute.
Original file line number Diff line number Diff line change @@ -490,8 +490,8 @@ neverallow { domain -kernel with_asan(`-asan_extract') } { system_file_type vend
490
490
neverallow * exec_type:dir_file_class_set mounton;
491
491
neverallow { domain -init } { system_file_type vendor_file_type }:dir_file_class_set mounton;
492
492
493
- # Nothing should be writing to files in the rootfs.
494
- neverallow * rootfs:file { create write setattr relabelto append unlink link rename };
493
+ # Nothing should be writing to files in the rootfs, except recovery .
494
+ neverallow { domain -recovery } rootfs:file { create write setattr relabelto append unlink link rename };
495
495
496
496
# Restrict context mounts to specific types marked with
497
497
# the contextmount_type attribute.
You can’t perform that action at this time.
0 commit comments