/[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.3 - (hide annotations) (download)
Tue Mar 16 20:59:50 2021 UTC (3 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-openssh-2_6_0-7_el7_sme, e-smith-openssh-2_6_0-8_el7_sme, HEAD
Changes since 1.2: +2 -2 lines
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-7.sme
- clean rsyslog syntax for sshd [SME: 11422]

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 jpp 1.3 +if $programname == 'sshd' and $syslogfacility-text == 'authpriv' then /var/log/secure
8 jpp 1.1 +:programname, isequal, "sshd" /var/log/sshd/sshd.log
9 jpp 1.3 +& stop
10 jpp 1.1 +
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