/[smeserver]/rpms/e-smith-openssh/sme10/e-smith-openssh-2.6.0-bz11256-logging.patch
ViewVC logotype

Annotation of /rpms/e-smith-openssh/sme10/e-smith-openssh-2.6.0-bz11256-logging.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Fri Feb 19 06:07:13 2021 UTC (3 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-openssh-2_6_0-6_el7_sme
Changes since 1.1: +10 -0 lines
* Thu Feb 18 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme
- increase default host key size [SME: 11359]
- redirect logging to /var/log/sshd/sshd.log and logrotate [SME: 11256]

1 jpp 1.1 diff -Nur e-smith-openssh-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd e-smith-openssh-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd
2     --- e-smith-openssh-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd 1969-12-31 19:00:00.000000000 -0500
3     +++ e-smith-openssh-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd 2021-02-18 23:11:58.454000000 -0500
4     @@ -0,0 +1,6 @@
5     +
6     +#sshd
7     +:programname, isequal, "sshd" /var/log/sshd/sshd.log
8     +:programname, isequal, "sshd" stop
9     +
10     +
11     diff -Nur e-smith-openssh-2.6.0.old/root/etc/logrotate.d/sshd e-smith-openssh-2.6.0/root/etc/logrotate.d/sshd
12     --- e-smith-openssh-2.6.0.old/root/etc/logrotate.d/sshd 1969-12-31 19:00:00.000000000 -0500
13     +++ e-smith-openssh-2.6.0/root/etc/logrotate.d/sshd 2021-02-18 23:13:02.453000000 -0500
14     @@ -0,0 +1,13 @@
15     +/var/log/sshd/sshd.log
16     +{
17     + missingok
18     + notifempty
19     + sharedscripts
20     + delaycompress
21     + su root root
22     + create 600 root root
23     + postrotate
24     + /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
25     + endscript
26     +}
27     +
28 jpp 1.2 diff -Nur e-smith-openssh-2.6.0.old/createlinks e-smith-openssh-2.6.0/createlinks
29     --- e-smith-openssh-2.6.0.old/createlinks 2021-02-19 01:04:35.196000000 -0500
30     +++ e-smith-openssh-2.6.0/createlinks 2021-02-19 01:05:30.696000000 -0500
31     @@ -54,4 +54,5 @@
32     event_link("systemd-reload", $event, "89");
33     event_link("systemd-default", $event, "88");
34     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/sshd");
35     -
36     +templates2events("/etc/rsyslog.conf",$event);
37     +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed