aboutsummaryrefslogtreecommitdiffstats
path: root/minzip/DirUtil.h
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-07-17 19:01:37 -0700
committerNick Kralevich <nnk@google.com>2013-07-18 15:21:12 -0700
commit627eb30f73c29257acaeb6568f3da38880784f7c (patch)
tree044a0368547eadfaefa9ee4c9a24672ac5a30dc5 /minzip/DirUtil.h
parent51c84694b0198a90b8eed635b46a3712c44db7a5 (diff)
downloadbootable_recovery-627eb30f73c29257acaeb6568f3da38880784f7c.zip
bootable_recovery-627eb30f73c29257acaeb6568f3da38880784f7c.tar.gz
bootable_recovery-627eb30f73c29257acaeb6568f3da38880784f7c.tar.bz2
Update OTA installer to understand SELinux filesystem labels
Modify the OTA installer to understand SELinux filesystem labels. We do this by introducing new set_perm2 / set_perm2_recursive calls, which understand SELinux filesystem labels. These filesystem labels are applied at the same time that we apply the UID / GID / permission changes. For compatibility, we preserve the behavior of the existing set_perm / set_perm_recursive calls. If the destination kernel doesn't support security labels, don't fail. SELinux isn't enabled on all kernels. Bug: 8985290 Change-Id: I99800499f01784199e4918a82e3e2db1089cf25b
Diffstat (limited to 'minzip/DirUtil.h')
-rw-r--r--minzip/DirUtil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/minzip/DirUtil.h b/minzip/DirUtil.h
index a5cfa76..3e12a0b 100644
--- a/minzip/DirUtil.h
+++ b/minzip/DirUtil.h
@@ -54,7 +54,7 @@ int dirUnlinkHierarchy(const char *path);
* Sets directories to <dirMode> and files to <fileMode>. Skips symlinks.
*/
int dirSetHierarchyPermissions(const char *path,
- int uid, int gid, int dirMode, int fileMode);
+ int uid, int gid, int dirMode, int fileMode, const char* secontext);
#ifdef __cplusplus
}