Skip to content
Snippets Groups Projects
Commit 31cc484a authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Android Git Automerger
Browse files

am 9905c883: am 723e31ef: Merge "Allow init to set up dm-verity"

* commit '9905c883':
  Allow init to set up dm-verity
parents 4c7857e6 9905c883
No related branches found
No related tags found
No related merge requests found
...@@ -222,6 +222,18 @@ allow init device:chr_file { rw_file_perms setattr }; ...@@ -222,6 +222,18 @@ allow init device:chr_file { rw_file_perms setattr };
# keychord configuration # keychord configuration
allow init self:capability sys_tty_config; allow init self:capability sys_tty_config;
# Access device mapper for setting up dm-verity
allow init dm_device:chr_file rw_file_perms;
allow init dm_device:blk_file rw_file_perms;
# Access metadata block device for storing dm-verity state
allow init metadata_block_device:blk_file rw_file_perms;
# Read /sys/fs/pstore/console-ramoops to detect restarts caused
# by dm-verity detecting corrupted blocks
allow init pstorefs:dir search;
allow init pstorefs:file r_file_perms;
### ###
### neverallow rules ### neverallow rules
### ###
......
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