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

Bug #1388068 reported by Joel Nelson on 2014-10-31
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
procps (Ubuntu)
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.

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  Edit
Everyone can see this information.

Other bug subscribers