Re: Sancp install error

"Sebastien Tricaud" <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.user
Message-ID <[email protected]>
This was actually a problem from SanCP which moved some stuff in new
structures but did not keep all required members.

The attached patch fixes this. Can you tell me if it works as expected ?

Thanks,
Sebastien.


On Fri, Aug 1, 2008 at 3:04 AM, adjete wilson <[email protected]> wrote:
> Hi,
>
> I'm trying to install sancp release candidate 5 with prelude support and i'm
> having a few issues. the stable version works okay , but once i download the
> release candidates with prelude support, i get a member profile error. Any
> help will be appreciated. thanks.
> error:
>  make linux
> make[1]: Entering directory `/root/sancp-1.6.1d/sancp-1.6.2-candidate.C.3'
> g++ -Wall -O3 -s  -I/usr/local/include  -I./ -L/usr/lib/libpcap.so.0.9.4
> -L/usr/lib  -Xlinker -rpath -Xlinker /usr/lib  `libprelude-config
> --cflags`   -c build_acl.cc -o build_acl.o
> build_acl.cc: In function âvoid parse_default(char*, char*)â:
> build_acl.cc:1569: error: âstruct gvarsâ has no member named âprofileâ
> build_acl.cc: In function âvoid parse_connection_rule(char*, vars*, char*)â:
> build_acl.cc:1886: error: âstruct aclâ has no member named âprelude_profileâ
> make[1]: *** [final] Error 1
> make[1]: Leaving directory `/root/sancp-1.6.1d/sancp-1.6.2-candidate.C.3'
> make: *** [linux] Error 2
> <[email protected]>
>
> --
> Adjete Wilson
> Security Analyst
> Omaha, NE
> _______________________________________________
> Prelude-user site list
> [email protected]
> http://lists.prelude-ids.org/mailman/listinfo/prelude-user
>

_______________________________________________
Prelude-user site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-user
sancpRC5-prelude-support.0.patch (text/x-diff, 888 B)
diff -Nrudb sancp-1.6.2-candidate.C.5.origin/build_acl.cc sancp-1.6.2-candidate.C.5/build_acl.cc
--- sancp-1.6.2-candidate.C.5.origin/build_acl.cc	2008-08-06 11:45:00.000000000 +0200
+++ sancp-1.6.2-candidate.C.5/build_acl.cc	2008-08-06 11:45:14.000000000 +0200
@@ -1637,7 +1637,7 @@
 			free(rule);
 			return;
 		}
-		gVars.profile = strdup(tmp);
+		gVars.prelude_profile = strdup(tmp);
 		free(rule);
 		return;
 	}
diff -Nrudb sancp-1.6.2-candidate.C.5.origin/sancp.h sancp-1.6.2-candidate.C.5/sancp.h
--- sancp-1.6.2-candidate.C.5.origin/sancp.h	2008-08-06 11:45:00.000000000 +0200
+++ sancp-1.6.2-candidate.C.5/sancp.h	2008-08-06 11:46:06.000000000 +0200
@@ -322,6 +322,7 @@
     u_int16_t node;
     u_int16_t zone;
 #ifdef ENABLE_PRELUDE_SUPPORT
+    char *prelude_profile;
     char *prelude_impact_severity;
     char *prelude_impact_completion;
     char *prelude_impact_type;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.