diff options
author | Robert Craig <rpcraig@tycho.ncsc.mil> | 2013-03-26 08:21:37 -0400 |
---|---|---|
committer | Robert Craig <rpcraig@tycho.ncsc.mil> | 2013-03-26 08:45:28 -0400 |
commit | 4a4537331be12e7ac11066931c845ec9d8064571 (patch) | |
tree | baaba25a736143268efd38aa79910f7cb9932e95 /services/java/com/android/server/pm | |
parent | 2aee33c1cdf89c0754bb660cd2e0ec95a007d4a8 (diff) | |
download | frameworks_base-4a4537331be12e7ac11066931c845ec9d8064571.zip frameworks_base-4a4537331be12e7ac11066931c845ec9d8064571.tar.gz frameworks_base-4a4537331be12e7ac11066931c845ec9d8064571.tar.bz2 |
Save off the seinfo value with packages.list.
Patch adds the seinfo label per package to the file.
This is of particular interest to the run-as program
which uses the seinfo tag to correctly label the
app security context before running the shell.
Change-Id: I9d7ea47c920b1bc09a19008345ed7fd0aa426e87
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Diffstat (limited to 'services/java/com/android/server/pm')
-rw-r--r-- | services/java/com/android/server/pm/Settings.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/java/com/android/server/pm/Settings.java b/services/java/com/android/server/pm/Settings.java index a472247..b744bc3 100644 --- a/services/java/com/android/server/pm/Settings.java +++ b/services/java/com/android/server/pm/Settings.java @@ -1359,6 +1359,7 @@ final class Settings { // userId - application-specific user id // debugFlag - 0 or 1 if the package is debuggable. // dataPath - path to package's data path + // seinfo - seinfo label for the app (assigned at install time) // // NOTE: We prefer not to expose all ApplicationInfo flags for now. // @@ -1372,6 +1373,8 @@ final class Settings { sb.append((int)ai.uid); sb.append(isDebug ? " 1 " : " 0 "); sb.append(dataPath); + sb.append(" "); + sb.append(ai.seinfo); sb.append("\n"); str.write(sb.toString().getBytes()); } |