samba + audit over slackware 12 - Slackware
This is a discussion on samba + audit over slackware 12 - Slackware ; Hi all, I never patched a standard package. Could You help me? Pls...
I downloaded samba-3.0.27a and now I would add the audit patch
( http://thwartedefforts.org/software/...mba-audit.html )
Then I would use samba.Slackbuild to make a Slackware similar samba
package. I've ...
-
samba + audit over slackware 12
Hi all, I never patched a standard package. Could You help me? Pls...
I downloaded samba-3.0.27a and now I would add the audit patch
(http://thwartedefforts.org/software/...mba-audit.html)
Then I would use samba.Slackbuild to make a Slackware similar samba
package. I've never done such a thing
Prblm n°1) I couldn't patch correctly!
That's why:
root@server:/usr/local/src/samba-3.0.27a# ls -l
totale 436
-rw-r--r-- 1 root root 17982 2007-11-15 04:15 COPYING
-rw-r--r-- 1 root root 1126 2007-11-15 04:15 MAINTAINERS
-rw-r--r-- 1 root root 2558 2007-11-15 04:15 Manifest
-rw-r--r-- 1 root root 8580 2007-11-15 04:15 README
-rw-r--r-- 1 root root 5547 2007-11-15 04:15 README.Coding
-rw-r--r-- 1 root root 0 2007-11-21 04:59 REVISION
-rw-r--r-- 1 root root 0 2007-11-15 04:15 Read-Manifest-Now
-rw-r--r-- 1 root root 1357 2007-11-15 04:15 Roadmap
-rw-r--r-- 1 root root 332002 2007-11-21 04:58 WHATSNEW.txt
drwxr-xr-x 5 root root 4096 2007-06-19 19:12 docs/
drwxr-xr-x 21 root root 4096 2007-11-15 04:15 examples/
drwxr-xr-x 12 root root 4096 2007-11-15 04:15 packaging/
drwxr-xr-x 2 root root 4096 2007-11-15 04:15 pcp/
-rwxrw-rw- 1 giulio users 22216 2007-12-04 17:24 samba-audit-2.0.7.diff*
drwxr-xr-x 42 root root 4096 2007-11-21 05:00 source/
drwxr-xr-x 6 root root 4096 2007-11-15 04:15 swat/
drwxr-xr-x 10 root root 4096 2007-11-15 04:15 testsuite/
root@server:/usr/local/src/samba-3.0.27a# patch -p0 < samba-audit-2.0.7.diff
patching file source/Makefile.in
Hunk #1 FAILED at 150.
1 out of 1 hunk FAILED -- saving rejects to file source/Makefile.in.rej
patching file source/include/includes.h
Hunk #1 succeeded at 54 (offset 27 lines).
patching file source/include/syslog_audit.h
patching file source/param/loadparm.c
Hunk #1 FAILED at 249.
Hunk #2 FAILED at 364.
Hunk #3 FAILED at 473.
Hunk #4 FAILED at 500.
Hunk #5 FAILED at 554.
Hunk #6 FAILED at 904.
Hunk #7 FAILED at 1087.
Hunk #8 succeeded at 1472 with fuzz 2 (offset 2 lines).
Hunk #9 FAILED at 1984.
8 out of 9 hunks FAILED -- saving rejects to file
source/param/loadparm.c.rej
patching file source/rpc_server/srv_netlog.c
Hunk #1 succeeded at 183 with fuzz 1 (offset -442 lines).
Hunk #2 FAILED at 323.
Hunk #3 FAILED at 344.
2 out of 3 hunks FAILED -- saving rejects to file
source/rpc_server/srv_netlog.c.rej
patching file source/smbd/close.c
Hunk #1 FAILED at 158.
1 out of 1 hunk FAILED -- saving rejects to file source/smbd/close.c.rej
patching file source/smbd/open.c
Hunk #1 FAILED at 346.
1 out of 1 hunk FAILED -- saving rejects to file source/smbd/open.c.rej
patching file source/smbd/reply.c
Hunk #1 FAILED at 1717.
Hunk #2 FAILED at 1961.
Hunk #3 FAILED at 1992.
Hunk #4 FAILED at 3218.
Hunk #5 FAILED at 3406.
Hunk #6 FAILED at 3714.
Hunk #7 FAILED at 3805.
7 out of 7 hunks FAILED -- saving rejects to file source/smbd/reply.c.rej
patching file source/smbd/server.c
Hunk #1 succeeded at 1117 with fuzz 2 (offset 367 lines).
patching file source/smbd/service.c
Hunk #1 succeeded at 249 with fuzz 2 (offset -247 lines).
Hunk #2 succeeded at 1478 with fuzz 2 (offset 894 lines).
patching file source/smbd/syslog_audit.c
root@server:/usr/local/src/samba-3.0.27a#
What is going on? please HELP ME! :-)
Thanks
Giulio
-
Re: samba + audit over slackware 12
On Thu, 06 Dec 2007 10:12:40 +0100, Giulio wrote:
> Hi all, I never patched a standard package. Could You help me? Pls...
>
> I downloaded samba-3.0.27a and now I would add the audit patch
> (http://thwartedefforts.org/software/...mba-audit.html)
> Then I would use samba.Slackbuild to make a Slackware similar samba
> package. I've never done such a thing
>
> Prblm n°1) I couldn't patch correctly!
>
> That's why:
>
> root@server:/usr/local/src/samba-3.0.27a# ls -l
> totale 436
> -rw-r--r-- 1 root root 17982 2007-11-15 04:15 COPYING
> -rw-r--r-- 1 root root 1126 2007-11-15 04:15 MAINTAINERS
> -rw-r--r-- 1 root root 2558 2007-11-15 04:15 Manifest
> -rw-r--r-- 1 root root 8580 2007-11-15 04:15 README
> -rw-r--r-- 1 root root 5547 2007-11-15 04:15 README.Coding
> -rw-r--r-- 1 root root 0 2007-11-21 04:59 REVISION
> -rw-r--r-- 1 root root 0 2007-11-15 04:15 Read-Manifest-Now
> -rw-r--r-- 1 root root 1357 2007-11-15 04:15 Roadmap
> -rw-r--r-- 1 root root 332002 2007-11-21 04:58 WHATSNEW.txt
> drwxr-xr-x 5 root root 4096 2007-06-19 19:12 docs/
> drwxr-xr-x 21 root root 4096 2007-11-15 04:15 examples/
> drwxr-xr-x 12 root root 4096 2007-11-15 04:15 packaging/
> drwxr-xr-x 2 root root 4096 2007-11-15 04:15 pcp/
> -rwxrw-rw- 1 giulio users 22216 2007-12-04 17:24 samba-audit-2.0.7.diff*
> drwxr-xr-x 42 root root 4096 2007-11-21 05:00 source/
> drwxr-xr-x 6 root root 4096 2007-11-15 04:15 swat/
> drwxr-xr-x 10 root root 4096 2007-11-15 04:15 testsuite/
> root@server:/usr/local/src/samba-3.0.27a# patch -p0 < samba-audit-2.0.7.diff
> patching file source/Makefile.in
> Hunk #1 FAILED at 150.
> 1 out of 1 hunk FAILED -- saving rejects to file source/Makefile.in.rej
> patching file source/include/includes.h
> Hunk #1 succeeded at 54 (offset 27 lines).
> patching file source/include/syslog_audit.h
> patching file source/param/loadparm.c
> Hunk #1 FAILED at 249.
> Hunk #2 FAILED at 364.
> Hunk #3 FAILED at 473.
> Hunk #4 FAILED at 500.
> Hunk #5 FAILED at 554.
> Hunk #6 FAILED at 904.
> Hunk #7 FAILED at 1087.
> Hunk #8 succeeded at 1472 with fuzz 2 (offset 2 lines).
> Hunk #9 FAILED at 1984.
> 8 out of 9 hunks FAILED -- saving rejects to file
> source/param/loadparm.c.rej
> patching file source/rpc_server/srv_netlog.c
> Hunk #1 succeeded at 183 with fuzz 1 (offset -442 lines).
> Hunk #2 FAILED at 323.
> Hunk #3 FAILED at 344.
> 2 out of 3 hunks FAILED -- saving rejects to file
> source/rpc_server/srv_netlog.c.rej
> patching file source/smbd/close.c
> Hunk #1 FAILED at 158.
> 1 out of 1 hunk FAILED -- saving rejects to file source/smbd/close.c.rej
> patching file source/smbd/open.c
> Hunk #1 FAILED at 346.
> 1 out of 1 hunk FAILED -- saving rejects to file source/smbd/open.c.rej
> patching file source/smbd/reply.c
> Hunk #1 FAILED at 1717.
> Hunk #2 FAILED at 1961.
> Hunk #3 FAILED at 1992.
> Hunk #4 FAILED at 3218.
> Hunk #5 FAILED at 3406.
> Hunk #6 FAILED at 3714.
> Hunk #7 FAILED at 3805.
> 7 out of 7 hunks FAILED -- saving rejects to file source/smbd/reply.c.rej
> patching file source/smbd/server.c
> Hunk #1 succeeded at 1117 with fuzz 2 (offset 367 lines).
> patching file source/smbd/service.c
> Hunk #1 succeeded at 249 with fuzz 2 (offset -247 lines).
> Hunk #2 succeeded at 1478 with fuzz 2 (offset 894 lines).
> patching file source/smbd/syslog_audit.c
> root@server:/usr/local/src/samba-3.0.27a#
>
>
>
> What is going on? please HELP ME! :-)
>
> Thanks
> Giulio
>
Your source code patch failed because the "audit" project appears to samba
versions 2.0.5 and 2.0.7. Slackware 12 (as patched) uses version 3.0.27a.
Perhaps, this project will work better. It states that Samba 3 is
supported: http://sourceforge.net/projects/smbdaudit/
--
Douglas Mayne