[radvd-devel-l] check conffile perms, cleanups
Pekka Savola
radvd-devel-l@litech.org
Fri, 28 Dec 2001 10:51:12 +0200 (EET)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--1589707168-1388023399-1009529472=:30036
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hello all,
In addition to the forwarding check mentioned earlier, I've committed a
few other cleanups and enhancements, most of them triggered by a big patch
by Marko Myllynen. These are:
- AdvSendAdvert defaults to off like the rest of the parameters
- check the configuration file: must not be writable by others, if
non-root operation, not by self/own group either (if the account is
compromised, the file should not be writable). This is an "advisory"
information only like forwarding, and if debugging is enabled, it is
ignored.
- minor changes
Diff of all changes from the last 10 days is attached.. comments welcome,
as always.
(nothing more in the queue at the moment..)
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems. Networks. Security. -- Robert Jordan: A Crown of Swords
--1589707168-1388023399-1009529472=:30036
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="radvd.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0112281051120.30036@netcore.fi>
Content-Description:
Content-Disposition: attachment; filename="radvd.diff"
SW5kZXg6IENIQU5HRVMNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBm
aWxlOiAvd29yay9jdnNyb290L3JhZHZkL0NIQU5HRVMsdg0KcmV0cmlldmlu
ZyByZXZpc2lvbiAxLjEyDQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTUNCmRp
ZmYgLXUgLXIxLjEyIC1yMS4xNQ0KLS0tIENIQU5HRVMJMjAwMS8xMS8yMiAw
ODozMDoyNgkxLjEyDQorKysgQ0hBTkdFUwkyMDAxLzEyLzI4IDA4OjM4OjE4
CTEuMTUNCkBAIC0xLDQgKzEsMTMgQEANCi0kSWQ6IENIQU5HRVMsdiAxL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