debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #03134
[Bug 2108979] Re: settings defined in 10-magic-sysrq.conf are overriden by 50-default.conf
This bug was fixed in the package procps - 2:4.0.4-8ubuntu2
---------------
procps (2:4.0.4-8ubuntu2) questing; urgency=medium
* Fixes for new sysctl-defaults test:
- d/t/test_sysctl_defaults.py: skip test if sysctl key invalid
- d/t/control: show all sysctl.d configs before test
- d/t/control: make sysctl-defaults test Restrictions: isolation-machine
(LP: #2115346)
procps (2:4.0.4-8ubuntu1) questing; urgency=medium
* Merge from Debian unstable (LP: #2112060). Remaining changes:
- d/p/0010-testsuite-ps-etime-ELAPSED-doesn-t-match-full-format.patch:
Fix test failure (FTBFS) in testsuite/ps.test/ps_output.exp due to
invalid regex match inside LXD containers.
- debian/sysctl.d (Ubuntu-specific):
+ 10-console-messages.conf: stop low-level kernel messages on console.
+ 10-kernel-hardening.conf: add the kptr_restrict setting
+ 10-ipv6-privacy.conf: add a file to sysctl.d to apply the defaults
for IPv6 privacy extensions for interfaces. (LP#176125, LP#841353)
+ 10-magic-sysrq.conf: Disable most magic sysrq by default, allowing
critical sync, remount, reboot functions. (LP#194676, LP#1025467)
+ 10-network-security.conf: enable rp_filter.
+ 10-ptrace.conf: describe new PTRACE setting.
+ 10-zeropage.conf: safe mmap_min_addr value for graceful fall-back.
for armhf, and arm64.
+ 10-qemu.conf.s390x for qemu.
+ 10-bufferbloat.conf: set default qdisc to fq_codel
+ 10-map-count.conf: Increase vm.max_map_count to 1048576
- ignore_erofs.patch: Same as ignore_eaccess but for the case
where part of /proc is read/only.
- Adjust logic due to rc no longer being propagated (LP#1903351)
- ignore_eaccess.patch: If we get eaccess when opening a sysctl
file for writing, don't error out. Otherwise package upgrades
can fail, especially in containers.
- Adjust logic due to rc no longer being propagated (LP#1903351)
- Add basic autopkgtest to validate sysctl-defaults (LP#1962038)
- d/t/stack-limit: add basic autopkgtest to validate limits
* Dropped, included in Debian:
- d/p/ps-Don-t-crash-when-using-short-option.patch:
Fix ps crash issue when using short option
* New changes:
- debian/sysctl.d: ship configs in /usr, with higher priority
This ensures that Ubuntu's defaults take precedence over
50-default.conf from linux-sysctl-defaults. (LP: #2108979)
- d/t/stack-limit: call 'pgrep systemd' instead of 'pgrep bash'
The autopkgtest currently fails because there is no bash session, and
pgrep returns non-zero. Use systemd because that will match for pid1.
- d/tests: make sysctl-defaults test comprehensive
procps (2:4.0.4-8) unstable; urgency=medium
* Port 4.0.5 patches:
- library: recover from meminfo seek in LXC Closes: #1072831
- library: print user/day when value is zero
- library: Use clock_gettime for pids API Closes: #842879
- kill: Correctly parse negative pids
- sysctl: Don't read some keys Closes: #978688
- skill: Fix lonesome : in help Closes: #1086441
- sysctl.conf.5 Note changes with systemd Closes: #1077187
- vmstat.8: si/so are changed by --unit Closes: #1061944
- w: Don't crash with short option Closes: #1054345
- w: Only count user sessions Closes: #1098385
- w.1: Mention utmp only for non-systemd Closes: #1080333
- watch.1: --chgexit only on visible changes Closes: #729569
* Port 4.0.6 patches:
- w: Add terminal mode -t option
- w: Use process TTY for user TTY Closes: #1080335
-- Nick Rosbrook <enr0n@xxxxxxxxxx> Wed, 25 Jun 2025 10:25:56 -0400
** Changed in: procps (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/2108979
Title:
settings defined in 10-magic-sysrq.conf are overriden by
50-default.conf
Status in procps package in Ubuntu:
Fix Released
Bug description:
Description of the problem
In Ubuntu 24.10 it was sufficient to edit /etc/sysctl.d/10-magic-sysrq.conf to override the default sysrq enablement mask at boot. In Ubuntu 25.04 doing this no longer works because any kernel.sysrq value set in that file is overridden by the value in /usr/lib/sysctl.d/50-default.conf . Here's the relevant snippet of 50-default.conf :
# System Request functionality of the kernel (SYNC)
#
# Use kernel.sysrq = 1 to allow all keys.
# See https://docs.kernel.org/admin-guide/sysrq.html for a list
# of values and keys.
kernel.sysrq = 0x01b6
(when running "cat /proc/sys/kernel/sysrq" or "sysctl kernel.sysrq"
the value will be reported as 438 which can make finding the file
setting it more difficult)
It would be useful if there was a comment in /etc/sysctl.d/10-magic-
sysrq.conf hinting that the sysrq value is also set in
/usr/lib/sysctl.d/50-default.conf or for /etc/sysctl.d/10-magic-
sysrq.conf not to be made by default as it is misleading.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/2108979/+subscriptions