Skip to content

Commit

Permalink
init: Fix datadata context migration
Browse files Browse the repository at this point in the history
PackageManager/installd deal with the app data relabeling, but not
the dirs where the data is stored. Let init perform the relabel for
/data/(user|data)

Change-Id: I179df40deb62dc811f697cea65127522072be6eb
  • Loading branch information
rmcc committed Dec 14, 2014
1 parent 00e4df3 commit 79890d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init.te
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ allow init self:udp_socket { create ioctl };
# set scheduling parameters for a kernel domain task.
allow init kernel:process setsched;

# Allow init to read the context on userdirs (but not their contents)
# We need this before relabeling them coming from 4.4
allow init app_data_file:{ lnk_file dir } { getattr relabelfrom };

###
### neverallow rules
###
Expand Down

0 comments on commit 79890d5

Please sign in to comment.