diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c index e06cddd71..9fc461dac 100644 --- a/cmds/installd/commands.c +++ b/cmds/installd/commands.c @@ -1524,7 +1524,7 @@ int restorecon_data(const char* pkgName, const char* seinfo, uid_t uid) continue; } - if (selinux_android_restorecon_pkgdir(pkgdir, seinfo, uid, flags) < 0) { + if (selinux_android_restorecon_pkgdir(pkgdir, seinfo, s.st_uid, flags) < 0) { ALOGE("restorecon failed for %s: %s\n", pkgdir, strerror(errno)); ret |= -1; }