Bug 1905582
| Summary: | core ulimit set to infinity, should be 0 for disabled to align with RHEL 7 | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Anthony Zone <azone> | |
| Component: | systemd | Assignee: | David Tardon <dtardon> | |
| Status: | CLOSED ERRATA | QA Contact: | Frantisek Sumsal <fsumsal> | |
| Severity: | low | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 8.4 | CC: | awalsh, dapospis, dtardon, jamacku, msekleta, systemd-maint-list | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | systemd-239-50.el8 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2010330 (view as bug list) | Environment: | ||
| Last Closed: | 2021-11-09 19:54:49 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1969483, 2010330 | |||
|
Description
Anthony Zone
2020-12-08 15:37:12 UTC
fix merged to github master branch -> https://github.com/redhat-plumbers/systemd-rhel8/pull/149 We are using `ulimit -c unlimited` as a non-root user. We just updated our lab test machine to use RHEL-8.5.0-20210628.n.2, which has systemd-239-48.el8 installed. We are unable to execute that command as we could on older versions (i.e. systemd-239-45.el8). When we go in and revert the change referenced above ("DefaultLimitCORE=0"), our desired functionality is restored.
[awalsh@localhost ~]$ rpm -qa systemd
systemd-239-48.el8.x86_64
[awalsh@localhost ~]$ grep DefaultLimitCORE /etc/systemd/system.conf
DefaultLimitCORE=0
[awalsh@localhost ~]$ ulimit -c
0
[awalsh@localhost ~]$ ulimit -c unlimited
bash: ulimit: core file size: cannot modify limit: Operation not permitted
--- Comment out the above DefaultLimitCORE line and reboot ---
[awalsh@localhost ~]$ grep DefaultLimitCORE /etc/systemd/system.conf
#DefaultLimitCORE=0
[awalsh@localhost ~]$ ulimit -c
unlimited
[awalsh@localhost ~]$ ulimit -c unlimited
[awalsh@localhost ~]$ rpm -qa systemd
systemd-239-48.el8.x86_64
*** Bug 1989447 has been marked as a duplicate of this bug. *** As reported by several users, this indeed causes a regression where an unprivileged user is unable to change the core ulimit. fix merged to github master branch -> https://github.com/redhat-plumbers/systemd-rhel8/pull/205 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (systemd bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4469 |