Skip to content

Commit

Permalink
am 7cd346a: am 0055ea9: Allow recovery to create device nodes and mod…
Browse files Browse the repository at this point in the history
…ify rootfs

* commit '7cd346a70eecf45363e3368ba99b728832b9a902':
  Allow recovery to create device nodes and modify rootfs
  • Loading branch information
nickkral authored and Android Git Automerger committed Nov 7, 2014
2 parents f457e57 + 7cd346a commit cc13203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain.te
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ neverallow { domain -kernel -init -recovery -vold -uncrypt -install_recovery } b
# Don't allow raw read/write/open access to generic devices.
# Rather force a relabel to a more specific type.
# ueventd is exempt from this, as its managing these devices.
neverallow { domain -unconfineddomain -ueventd } device:chr_file { open read write };
neverallow { domain -unconfineddomain -ueventd -recovery } device:chr_file { open read write };

# Limit what domains can mount filesystems or change their mount flags.
# sdcard_type / vfat is exempt as a larger set of domains need
Expand Down Expand Up @@ -294,7 +294,7 @@ neverallow { domain -recovery } { system_file exec_type }:dir_file_class_set
{ create write setattr relabelfrom relabelto append unlink link rename };

# Nothing should be writing to files in the rootfs.
neverallow domain rootfs:file { create write setattr relabelto append unlink link rename };
neverallow { domain -recovery } rootfs:file { create write setattr relabelto append unlink link rename };

# Restrict context mounts to specific types marked with
# the contextmount_type attribute.
Expand Down

0 comments on commit cc13203

Please sign in to comment.