Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-26754

sysctl.d precedence is the reversed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • CentOS Stream 9, rhel-9.3.0
    • procps-ng
    • Yes
    • Important
    • Regression
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 2
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

      Bug description: 

      sysctl settings takes precedence in the reversed order of what it should be. If multiple files specify the same option, the file that is read first takes precedence.

      This is the opposite behavior of what is described in upstream's man page and Red Hat's documentation (What is order of reading sysctl.d and /etc/sysctl.conf in RHEL-7 and later ? - Red Hat Customer Portal). 

      The bug only affects RHEL and not Fedora.

      Please provide the package NVR for which bug is seen:

      procps-ng

      How reproducible:

      Always

      Steps to reproduce

      1. echo "fs.protected_fifos = 2" > /etc/sysctl.d/990-security-misc.conf
      2. sysctl -p
      3. sysctl -a | grep fifo

      Expected results

      fs.protected_fifos = 2

      Actual results

      fs.protected_fifos = 1

              jrybar@redhat.com Jan Rybar
              tommytran732 Thien Tran (Inactive)
              Jan Rybar Jan Rybar
              qe-baseos-daemons qe-baseos-daemons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: