Allow gsid to create alternative installation directory

Bug: 275484855
Test: adb shell gsi_tool install -n -w \
  --gsi-size $(du -b system.raw|cut -f1) \
  --install-dir /data/gsi/oem --userdata-size 8589934592 < system.raw
Change-Id: I46aa48fafec2f3845fa1a5139afb8c03db6b0d4e
This commit is contained in:
Howard Chen 2023-04-24 14:48:44 +08:00
parent 6c6f53b1a8
commit 98d3e27812

View file

@ -150,7 +150,7 @@ allow gsid gsi_public_metadata_file:file relabelto;
allow gsid {
gsi_data_file
ota_image_data_file
}:dir rw_dir_perms;
}:dir create_dir_perms;
allow gsid {
gsi_data_file
ota_image_data_file