[CRIU] [PATCH 2/6] Revert "pie: A quick workaround for PR_SET_DUMPABLE == 2 restore error."
Filipe Brandenburger
filbranden at google.com
Tue Jun 17 20:33:50 PDT 2014
This reverts commit 8870aa1e4f86da5fad087a31fe93bacd95144e09.
Signed-off-by: Filipe Brandenburger <filbranden at google.com>
---
pie/restorer.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/pie/restorer.c b/pie/restorer.c
index d4ab24f3af6b..9afa480aed4f 100644
--- a/pie/restorer.c
+++ b/pie/restorer.c
@@ -194,11 +194,7 @@ static int restore_dumpable_flag(MmEntry *mme)
int ret;
if (mme->has_dumpable) {
- /*
- * Allowed values for PR_SET_DUMPABLE are only
- * SUID_DUMP_DISABLE (0) and SUID_DUMP_USER (1).
- */
- ret = sys_prctl(PR_SET_DUMPABLE, mme->dumpable == 1 ? 1 : 0, 0, 0, 0);
+ ret = sys_prctl(PR_SET_DUMPABLE, mme->dumpable, 0, 0, 0);
if (ret) {
pr_err("Unable to set PR_SET_DUMPABLE: %d\n", ret);
return -1;
--
1.9.3
More information about the CRIU
mailing list