diff options
author | Nick Kralevich <nnk@google.com> | 2014-02-13 00:16:04 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-13 00:16:04 +0000 |
commit | 165c8bdfb585b224325423b21301620f9097dc64 (patch) | |
tree | de52314831370bf07b9376979b9aef826bff6633 /cmds/dumpstate | |
parent | 87c01edaf6921bcf39537418fa146dafd927b74b (diff) | |
parent | 0e4d2885a34d31f5dbe5a08bdb654953abaf82a2 (diff) | |
download | frameworks_native-165c8bdfb585b224325423b21301620f9097dc64.zip frameworks_native-165c8bdfb585b224325423b21301620f9097dc64.tar.gz frameworks_native-165c8bdfb585b224325423b21301620f9097dc64.tar.bz2 |
am 0e4d2885: am 2044ac43: Merge "Convert all selinux_android_restorecon and _setfilecon calls to new API."
* commit '0e4d2885a34d31f5dbe5a08bdb654953abaf82a2':
Convert all selinux_android_restorecon and _setfilecon calls to new API.
Diffstat (limited to 'cmds/dumpstate')
-rw-r--r-- | cmds/dumpstate/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index 7f84f98..577d31c 100644 --- a/cmds/dumpstate/utils.c +++ b/cmds/dumpstate/utils.c @@ -508,7 +508,7 @@ const char *dump_traces() { if (!mkdir(anr_traces_dir, 0775)) { chown(anr_traces_dir, AID_SYSTEM, AID_SYSTEM); chmod(anr_traces_dir, 0775); - if (selinux_android_restorecon(anr_traces_dir) == -1) { + if (selinux_android_restorecon(anr_traces_dir, 0) == -1) { fprintf(stderr, "restorecon failed for %s: %s\n", anr_traces_dir, strerror(errno)); } } else if (errno != EEXIST) { |