am 490963a5: am c0f95624: am 783eb168: Merge "Add -D option to restorecon for relabeling /data/data."

* commit '490963a54e5ef0c421f0e1ac87eafc2b46c32b95':
  Add -D option to restorecon for relabeling /data/data.
This commit is contained in:
Nick Kralevich 2014-02-20 23:15:40 +00:00 committed by Android Git Automerger
commit 5a78e23a00
1 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ static const char *progname;
static void usage(void)
{
fprintf(stderr, "usage: %s [-FnrRv] pathname...\n", progname);
fprintf(stderr, "usage: %s [-DFnrRv] pathname...\n", progname);
exit(1);
}
@ -21,10 +21,13 @@ int restorecon_main(int argc, char **argv)
progname = argv[0];
do {
ch = getopt(argc, argv, "FnrRv");
ch = getopt(argc, argv, "DFnrRv");
if (ch == EOF)
break;
switch (ch) {
case 'D':
flags |= SELINUX_ANDROID_RESTORECON_DATADATA;
break;
case 'F':
flags |= SELINUX_ANDROID_RESTORECON_FORCE;
break;