Mailinglist Archive: opensuse-bugs (2746 mails)

< Previous Next >
[Bug 826825] New: sysctl should load settings from various files according to the documentation, but it doesn't
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 26 Jun 2013 09:39:25 +0000
  • Message-id: <bug-826825-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=826825

https://bugzilla.novell.com/show_bug.cgi?id=826825#c0


Summary: sysctl should load settings from various files
according to the documentation, but it doesn't
Classification: openSUSE
Product: openSUSE 12.3
Version: Final
Platform: x86-64
OS/Version: openSUSE 12.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: manfred.h@xxxxxxx
QAContact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101
Firefox/22.0

According to "man 5 sysctl.d" and a comment in the /etc/sysctl.conf file,
running "sysctl -p" should load settings from a variety of files, including the
kernel-supplied /boot/sysctl.conf-$(uname -r).

The desktop kernel comes with such a file to set vm.dirty_ratio to 20, but on
my system it is still at 10. strace'ing sysctl shows that it doesn't look at
/boot/sysctl.conf*, not does it load *any* file I have here in /etc/sysctl.d:

# strace -f -etrace=file /sbin/sysctl -p
execve("/sbin/sysctl", ["/sbin/sysctl", "-p"], [/* 58 vars */]) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
open("/etc/sysctl.conf", O_RDONLY) = 3
stat("/proc/sys/kernel/sysrq", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/proc/sys/kernel/sysrq", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
kernel.sysrq = 1
stat("/proc/sys/net/ipv4/ip_forward", {st_mode=S_IFREG|0644, st_size=0, ...}) =
0
open("/proc/sys/net/ipv4/ip_forward", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
net.ipv4.ip_forward = 1
stat("/proc/sys/net/ipv4/tcp_syncookies", {st_mode=S_IFREG|0644, st_size=0,
...}) = 0
open("/proc/sys/net/ipv4/tcp_syncookies", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
net.ipv4.tcp_syncookies = 1
stat("/proc/sys/net/ipv6/conf/all/forwarding", {st_mode=S_IFREG|0644,
st_size=0, ...}) = 0
open("/proc/sys/net/ipv6/conf/all/forwarding", O_WRONLY|O_CREAT|O_TRUNC, 0666)
= 4
net.ipv6.conf.all.forwarding = 1
stat("/proc/sys/net/ipv6/conf/all/disable_ipv6", {st_mode=S_IFREG|0644,
st_size=0, ...}) = 0
open("/proc/sys/net/ipv6/conf/all/disable_ipv6", O_WRONLY|O_CREAT|O_TRUNC,
0666) = 4
net.ipv6.conf.all.disable_ipv6 = 1
+++ exited with 0 +++

This might be related to bug #817773, which was closed as invalid, but it did
not prove that sysctl actually *loads* settings from any of these files...

Reproducible: Always

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups