Merge "Add proc_cmdline read permission to read_fstab"

This commit is contained in:
Yi-yo Chiang 2022-03-22 02:37:15 +00:00 committed by Gerrit Code Review
commit bc3f8b3486
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ r_dir_file(gsid, sysfs_fs_f2fs)
# Needed to read fstab, which is used to validate that system verity does not
# use check_once_at_most for sdcard installs. (Note: proc_cmdline is needed
# to get the A/B slot suffix).
allow gsid proc_cmdline:file r_file_perms;
read_fstab(gsid)
allow gsid sysfs_dt_firmware_android:dir r_dir_perms;
allow gsid sysfs_dt_firmware_android:file r_file_perms;

View file

@ -1023,7 +1023,7 @@ define(`vendor_public_prop', `define_prop($1, vendor, public)')
define(`read_fstab', `
allow $1 { metadata_file gsi_metadata_file_type }:dir search;
allow $1 gsi_public_metadata_file:file r_file_perms;
allow $1 proc_bootconfig:file r_file_perms;
allow $1 { proc_bootconfig proc_cmdline }:file r_file_perms;
')
######################################