Bug 104310
Summary: | prctl(PR_SET_DUMPABLE, 1) is ignored | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Hrunting Johnson <hrunting> |
Component: | kernel | Assignee: | Dave Jones <davej> |
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | davej, jorton, pfrields, riel |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-01-05 03:44:43 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Hrunting Johnson
2003-09-12 13:27:21 UTC
*** Bug 98825 has been marked as a duplicate of this bug. *** This affects current 7.3 through 9 kernels. Simple repro case: #include <sys/types.h> #include <sys/prctl.h> #include <unistd.h> #include <stdio.h> #include <signal.h> int main(int argc, char **argv) { if (prctl(PR_SET_DUMPABLE, 0) || prctl(PR_SET_DUMPABLE, 1)) { perror("prctl(PR_SET_DUMPABLE)"); return 1; } if (prctl(PR_GET_DUMPABLE) != 1) { fprintf(stderr, "prctl(PR_SET_DUMPABLE, 1) was ignored.\n"); return 1; } printf("OK.\n"); return 0; } The fix is as simple as below IIRC: --- kernel/sys.c.orig Tue Dec 2 10:30:02 2003 +++ kernel/sys.c Tue Dec 2 10:30:29 2003 @@ -1242,7 +1242,6 @@ error = -EINVAL; break; } - if (is_dumpable(current)) current->mm->dumpable = arg2; break; case PR_SET_UNALIGN: |