/[smeserver]/rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-samba_audit.patch
ViewVC logotype

Annotation of /rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-samba_audit.patch

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


Revision 1.1 - (hide annotations) (download)
Wed Jan 23 03:23:38 2013 UTC (11 years, 9 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-samba-2_2_0-59_el5_sme, e-smith-samba-2_2_0-62_el5_sme, e-smith-samba-2_2_0-61_el5_sme, e-smith-samba-2_2_0-52_el5_sme, e-smith-samba-2_2_0-56_el5_sme, e-smith-samba-2_2_0-63_el5_sme, e-smith-samba-2_2_0-57_el5_sme, e-smith-samba-2_2_0-54_el5_sme, e-smith-samba-2_2_0-51_el5_sme, e-smith-samba-2_2_0-58_el5_sme, e-smith-samba-2_2_0-55_el5_sme, e-smith-samba-2_2_0-66_el5_sme, e-smith-samba-2_2_0-65_el5_sme, e-smith-samba-2_2_0-60_el5_sme, e-smith-samba-2_2_0-53_el5_sme, e-smith-samba-2_2_0-50_el5_sme, e-smith-samba-2_2_0-64_el5_sme, HEAD
Enable smb auditing per ibay [SME: 6176]

1 wellsi 1.1 diff -ruN e-smith-samba-2.2.0.old/createlinks e-smith-samba-2.2.0/createlinks
2     --- e-smith-samba-2.2.0.old/createlinks 2013-01-22 03:06:58.000000000 +0000
3     +++ e-smith-samba-2.2.0/createlinks 2013-01-22 05:18:59.000000000 +0000
4     @@ -24,6 +24,7 @@
5    
6     foreach my $file (qw(
7     /etc/pam.d/samba
8     + /etc/logrotate.d/samba_audit
9     ))
10     {
11     templates2events($file, qw(console-save bootstrap-console-save));
12     diff -ruN e-smith-samba-2.2.0.old/root/etc/e-smith/templates/etc/logrotate.d/samba_audit e-smith-samba-2.2.0/root/etc/e-smith/templates/etc/logrotate.d/samba_audit
13     --- e-smith-samba-2.2.0.old/root/etc/e-smith/templates/etc/logrotate.d/samba_audit 1970-01-01 01:00:00.000000000 +0100
14     +++ e-smith-samba-2.2.0/root/etc/e-smith/templates/etc/logrotate.d/samba_audit 2013-01-22 05:14:47.000000000 +0000
15     @@ -0,0 +1,11 @@
16     +/var/log/samba/samba_audit \{
17     + weekly
18     + missingok
19     + rotate 7
20     + postrotate
21     + /etc/init.d/syslog reload > /dev/null 2>&1 || true
22     + endscript
23     + compress
24     + notifempty
25     +\}
26     +
27     diff -ruN e-smith-samba-2.2.0.old/root/etc/e-smith/templates/etc/smb.conf/ibays/10smbaudit e-smith-samba-2.2.0/root/etc/e-smith/templates/etc/smb.conf/ibays/10smbaudit
28     --- e-smith-samba-2.2.0.old/root/etc/e-smith/templates/etc/smb.conf/ibays/10smbaudit 1970-01-01 01:00:00.000000000 +0100
29     +++ e-smith-samba-2.2.0/root/etc/e-smith/templates/etc/smb.conf/ibays/10smbaudit 2013-01-22 05:14:47.000000000 +0000
30     @@ -0,0 +1,12 @@
31     +{
32     + $OUT = "";
33     + return unless (($ibay->prop('Audit') || 'disabled') eq 'enabled');
34     +
35     + $ibay_vfs->{full_audit}->{prefix} = "%u|%I|%S";
36     + $ibay_vfs->{full_audit}->{failure} = "connect";
37     + $ibay_vfs->{full_audit}->{success} = "opendir mkdir rmdir open write rename unlink";
38     + $ibay_vfs->{full_audit}->{facility} = "local5";
39     + $ibay_vfs->{full_audit}->{priority} = "notice";
40     +}
41     +
42     +
43     diff -ruN e-smith-samba-2.2.0.old/root/etc/e-smith/templates/etc/syslog.conf/local5.notice e-smith-samba-2.2.0/root/etc/e-smith/templates/etc/syslog.conf/local5.notice
44     --- e-smith-samba-2.2.0.old/root/etc/e-smith/templates/etc/syslog.conf/local5.notice 1970-01-01 01:00:00.000000000 +0100
45     +++ e-smith-samba-2.2.0/root/etc/e-smith/templates/etc/syslog.conf/local5.notice 2013-01-22 05:26:34.000000000 +0000
46     @@ -0,0 +1 @@
47     +local5.notice -{ "/var/log/samba/samba_audit" }

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