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" } |