Bug 1017473 - settings in /etc/sysctl.conf are overwritten by default values
Summary: settings in /etc/sysctl.conf are overwritten by default values
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-10 01:10 UTC by Andrew J. Schorr
Modified: 2013-10-25 01:53 UTC (History)
7 users (show)

Fixed In Version: systemd-204-17.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-25 01:53:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
give highest priority to the settings in /etc/sysctl.conf (878 bytes, patch)
2013-10-10 02:26 UTC, Andrew J. Schorr
no flags Details | Diff

Description Andrew J. Schorr 2013-10-10 01:10:29 UTC
Description of problem: After the most recent patch to systemd, the settings in /etc/sysctl.conf have the lowest priority.  Thus, they are overwritten by the default values in the sysctl.d files.


Version-Release number of selected component (if applicable): systemd-204-16.fc19.x86_64



How reproducible: Boot the system with a setting in /etc/sysctl.conf that conflicts with a default setting.  For example, I have on my system:

bash-4.2$ grep rp_filter /etc/sysctl.conf
net.ipv4.conf.default.rp_filter = 0
bash-4.2$ grep rp_filter /usr/lib/sysctl.d/50-default.conf 
net.ipv4.conf.default.rp_filter = 1

The boot messages include:
Oct 09 11:48:33 ti5 systemd-sysctl[1250]: Overwriting earlier assignment of net/ipv4/conf/default/rp_filter in file '/usr/lib/sysctl.d/50-default.conf'.





Steps to Reproduce:
1. Install /etc/sysctl.conf with values intended to override the default values in the sysctl.d files
2. Reboot
3. Observe that /etc/sysctl.conf has lowest priority

Actual results: Conflicting settings in /etc/sysctl.conf are ignored.


Expected results: The values in /etc/sysctl.conf should have priority.  That was the case until the most recent patch.


Additional info:

Comment 1 Andrew J. Schorr 2013-10-10 02:26:41 UTC
Created attachment 810239 [details]
give highest priority to the settings in /etc/sysctl.conf

This patch fixes the problem for me.

Comment 2 Fedora Update System 2013-10-22 16:21:20 UTC
systemd-204-17.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/systemd-204-17.fc19

Comment 3 Fedora Update System 2013-10-23 03:33:07 UTC
Package systemd-204-17.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-204-17.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19730/systemd-204-17.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-10-25 01:53:10 UTC
systemd-204-17.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.