View Issue Details

IDProjectCategoryView StatusLast Update
0005215Rocky-Linux-8systemdpublic2024-01-02 08:42
ReporterSagar Patil Assigned ToLouis Abel  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Summary0005215: Rocky Linux 8--sysctl: cannot stat /proc/sys/-net/ipv4/ping_group_range: No such file or directory
DescriptionWe see this error
sudo sysctl -p /usr/lib/sysctl.d/50-default.conf
kernel.sysrq = 16
kernel.core_uses_pid = 1
kernel.kptr_restrict = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.promote_secondaries = 1
sysctl: cannot stat /proc/sys/-net/ipv4/ping_group_range: No such file or directory
net.core.default_qdisc = fq_codel
fs.protected_hardlinks = 1
fs.protected_symlinks = 1

File content
cat /usr/lib/sysctl.d/50-default.conf | grep net.ipv4
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.promote_secondaries = 1
-net.ipv4.ping_group_range = 0 2147483647


when this dash is removed or when this line is commented , the command works

We see this dash in net.ipv4.ping_group_range , is this a typo?

TagsNo tags attached.

Activities

Louis Abel

Louis Abel

2024-01-02 08:42

administrator   ~0005479

Thank you for the report.

What you are seeing is not a typo at all. The `-` means that any errors are ignored if we couldn't set the respective value.

Running sysctl -p manually of course will fail. However, journalctl -u systemd-sysctl will show you a completely different story (no errors) as of systemd 239-57.

Change log of systemd:

* Mon Feb 07 2022 systemd maintenance team <systemd-maint@redhat.com> - 239-57
. . .
- sysctl: if options are prefixed with "-" ignore write errors (#2037807)
. . .

Closing as no changes are required.

Issue History

Date Modified Username Field Change
2024-01-02 08:23 Sagar Patil New Issue
2024-01-02 08:42 Louis Abel Assigned To => Louis Abel
2024-01-02 08:42 Louis Abel Status new => closed
2024-01-02 08:42 Louis Abel Resolution open => no change required
2024-01-02 08:42 Louis Abel Note Added: 0005479