Skip to content

Commit df3b4ea

Browse files
AlanStokesAndroid (Google) Code Review
authored and
Android (Google) Code Review
committed
Merge "Constrain getattr for app data directories." into rvc-qpr-dev
2 parents 88b86a7 + 9443b2e commit df3b4ea

File tree

2 files changed

+2
-2
lines changed
  • prebuilts/api/30.0/private
  • private

2 files changed

+2
-2
lines changed

prebuilts/api/30.0/private/mls

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ mlsconstrain dir_file_class_set { create relabelfrom relabelto }
5454
# Only constrain open, not read/write.
5555
# Also constrain other forms of manipulation, e.g. chmod/chown, unlink, rename, etc.
5656
# Subject must dominate object unless the subject is trusted.
57-
mlsconstrain dir { open search setattr rename add_name remove_name reparent rmdir }
57+
mlsconstrain dir { open search getattr setattr rename add_name remove_name reparent rmdir }
5858
( (t2 != app_data_file and t2 != privapp_data_file ) or l1 dom l2 or t1 == mlstrustedsubject);
5959
mlsconstrain { file sock_file } { open setattr unlink link rename }
6060
( (t2 != app_data_file and t2 != privapp_data_file and t2 != appdomain_tmpfs) or l1 dom l2 or t1 == mlstrustedsubject);

private/mls

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ mlsconstrain dir_file_class_set { create relabelfrom relabelto }
5454
# Only constrain open, not read/write.
5555
# Also constrain other forms of manipulation, e.g. chmod/chown, unlink, rename, etc.
5656
# Subject must dominate object unless the subject is trusted.
57-
mlsconstrain dir { open search setattr rename add_name remove_name reparent rmdir }
57+
mlsconstrain dir { open search getattr setattr rename add_name remove_name reparent rmdir }
5858
( (t2 != app_data_file and t2 != privapp_data_file ) or l1 dom l2 or t1 == mlstrustedsubject);
5959
mlsconstrain { file sock_file } { open setattr unlink link rename }
6060
( (t2 != app_data_file and t2 != privapp_data_file and t2 != appdomain_tmpfs) or l1 dom l2 or t1 == mlstrustedsubject);

0 commit comments

Comments
 (0)