Bug 134051 - [PATCH] Sysctl.conf parameters not reloaded on restart or start
Summary: [PATCH] Sysctl.conf parameters not reloaded on restart or start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: laus
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jason Vas Dias
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks: 132991
TreeView+ depends on / blocked
 
Reported: 2004-09-29 09:24 UTC by Bastien Nocera
Modified: 2015-01-08 00:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-05-20 03:25:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
audit.initscript.patch (463 bytes, patch)
2004-09-29 09:25 UTC, Bastien Nocera
no flags Details | Diff
sysctl.conf (21.00 KB, text/plain)
2004-12-03 13:53 UTC, Dan Taracks
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2005:219 0 normal SHIPPED_LIVE laus bug fix update 2005-05-19 04:00:00 UTC

Description Bastien Nocera 2004-09-29 09:24:16 UTC
See the summary. As the network script does it, so should any
initscript that relies on sysctl.conf settings.
Patch attached below.

Comment 1 Bastien Nocera 2004-09-29 09:25:19 UTC
Created attachment 104499 [details]
audit.initscript.patch

Patch from Jose Plans <jmp>

Comment 2 Charlie Bennett 2004-09-29 14:31:38 UTC
Or edit /etc/modules.conf to add

post-install audit sysctl -e -p /etc/sysctl.conf


There is documentation to this effect in the HP EAL3 Certification
Guide that will be bundled in U4.  I'll look at having the U4 laus
%post deal with this.




Comment 3 Dan Taracks 2004-10-25 17:19:23 UTC
I have the same issue in sysctl.conf - I have updated it with new 
parameters and after reboot some changes take and some changes don't 
take.  I then thought it may be a syntax issue, but when i do a 
sysctl -w and then cut-and-paste the line from my sysctl.conf file - 
it takes perfectly.  So - will the line above added to my 
modules.conf file re-read the sysctl.conf file?  
Thanks

Comment 4 Charlie Bennett 2004-11-10 15:36:06 UTC
The line above should read your sysctl.conf.

Comment 5 Dan Taracks 2004-12-03 13:53:21 UTC
Created attachment 107828 [details]
sysctl.conf

Comment 6 Dan Taracks 2004-12-03 13:54:08 UTC
OK Charlie - I tried both things mentioned here.  Maybe there is a 
symtax error in my sysctl.conf file - I will attach the sysctl.conf 
file for you to look at.  Thanks for the help.

Comment 7 Charlie Bennett 2004-12-03 18:52:06 UTC
Hi Dan -

   I don't see any audit entries in your sysctl.conf.

mine look like this:
# audit subsystem defaults
dev.audit.max-messages = 1024
dev.audit.paranoia = 0
dev.audit.attach-all = 0
dev.audit.allow-suspend = 1
dev.audit.debug = 0


Comment 8 Dan Taracks 2004-12-03 19:17:20 UTC
Thanks Charlie - Are those normal entries to have in the 
sysctl.conf ? I am a bit new to this so please excuse my ignorance.
So - If I put those entries in - will it then read the entry in my 
modules.conf.  I am confused I guess.  Like I said - some of the 
entries get applied, but not all of them.  Do I have them in the 
wrong order ?  Thanks again for your help.

Comment 9 Charlie Bennett 2004-12-03 19:50:45 UTC
Are you asking specifically in the context of the laus auditing driver?

Comment 10 Dan Taracks 2004-12-03 20:44:05 UTC
I don't even know what the laus auditing driver is. I hope I am not 
starting to look like a fool.  I just want the sysctl.conf entries to 
be read properly - just like when I run sysctl -w and they all take 
just fine.  In fact - the "patch" that Bastien gave is odd because I 
don't have an init script called audit.

Comment 11 Charlie Bennett 2004-12-06 17:23:40 UTC
Ayuh.  This is a bug against the laus package.  It provides system
call auditing - part of getting RHEL3 it's EAL3 security certification.

That being said, let me grab my "generalist" hat.

In which instances are you not seeing your sysctl parameters re-read?

Comment 12 Dan Taracks 2004-12-06 17:49:34 UTC
After re-boot I cat the /proc entries and see that some of the 
entries are not taking. The VM and NET entries to be specific.  Just 
wondering if I may have a syntax error.  I heard a rumor that this is 
a known problem and will be fixed in U4.  That is sue out this month 
correct ?  

Comment 22 Jason Vas Dias 2005-03-11 15:36:15 UTC
This bug is now fixed in laus-0.1-68RHEL3 .

By default, there are NO dev.audit entries in /etc/sysctl.conf .

With laus-0.1-68RHEL3, there are now two mechanisms whereby audit
sysctl settings can be set when the module is loaded:
1. Create a file with only dev.audit settings, and set the variable
   'AUDITSYSCTL=<filename>'
   in /etc/sysconfig/audit
   Then the audit initscript will load only these sysctl settings
   after it loads the module.
OR:
2. Put 'dev.audit' settings in /etc/sysctl.conf - these will be loaded
   after the audit initscript loads the module.

Comment 23 Dennis Gregorovic 2005-05-20 03:25:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-219.html



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