Skip to content
Snippets Groups Projects
Commit 66e903c6 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 8318980a: am 48212742: Don\'t allow types which are both file_type and fs_type

* commit '8318980a':
  Don't allow types which are both file_type and fs_type
parents 5d633fb8 8318980a
No related branches found
No related tags found
No related merge requests found
......@@ -154,3 +154,12 @@ allow file_type labeledfs:filesystem associate;
allow file_type tmpfs:filesystem associate;
allow file_type rootfs:filesystem associate;
allow dev_type tmpfs:filesystem associate;
# It's a bug to assign the file_type attribute and fs_type attribute
# to any type. Do not allow it.
#
# For example, the following is a bug:
# type apk_data_file, file_type, data_file_type, fs_type;
# Should be:
# type apk_data_file, file_type, data_file_type;
neverallow fs_type file_type:filesystem *;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment