sysctl.conf is not loaded by 'sysctl --system'

Bug #1388068 reported by Joel Nelson
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
procps (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

As described in the sysctl man page, /etc/sysctl.conf should be loaded by running 'sysctl --system':

       --system
              Load settings from all system configuration files.
              /run/sysctl.d/*.conf
              /etc/sysctl.d/*.conf
              /usr/local/lib/sysctl.d/*.conf
              /usr/lib/sysctl.d/*.conf
              /lib/sysctl.d/*.conf
              /etc/sysctl.conf

This patch seems to have broken that, by loading it only in the case of an *error* from stat() on /etc/sysctl.conf, rather than success.

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/procps/trusty/revision/77/.pc/ignore_eaccess.patch/sysctl.c

See the new line 643 in that patch.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in procps (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.