[rsbac] Anyone tried these combinations?

Amon Ott ao at rsbac.org
Thu Nov 20 10:54:57 CET 2003


On Dienstag, 18. November 2003 12:30, Michal Medvecky wrote:
> On Tue, Nov 18, 2003 at 11:38:07AM +0100, Amon Ott wrote:
> > > rsbac-prepatched-kernel 2.4.22+rsbac + rsbac-admin 1.2.2 DOES NOT!!! 
compile
> > > on debian testing (neither with gcc 2.95 nor 3.x), has hundreds of 
errors
> >
> > Can you please send me some compile log? Debian testing is my development
> > system, and it compiles fine here. Almost all my systems run Debian by 
now.
> 
> triton:~/rsbac-admin-v1.2.2# make
>[...]
> Making all in src
> make[2]: Entering directory `/root/rsbac-admin-v1.2.2/src'
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -DLOCALEDIR=\"/
usr/local/share/locale\" -DPACKAGE=\"rsbac-admin\" -DCONFIG_RSBAC    -g -O2 
-c acl_grant.c
> cp -v /usr/src/linux/rsbac/help/getname.c getname.c
> `/usr/src/linux/rsbac/help/getname.c' -> `getname.c'
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -DLOCALEDIR=\"/
usr/local/share/locale\" -DPACKAGE=\"rsbac-admin\" -DCONFIG_RSBAC    -g -O2 
-c getname.c
> cp -v /usr/src/linux/rsbac/help/helpers.c helpers.c
> `/usr/src/linux/rsbac/help/helpers.c' -> `helpers.c'
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -DLOCALEDIR=\"/
usr/local/share/locale\" -DPACKAGE=\"rsbac-admin\" -DCONFIG_RSBAC    -g -O2 
-c helpers.c
> cp -v /usr/src/linux/rsbac/help/acl_getname.c acl_getname.c
> `/usr/src/linux/rsbac/help/acl_getname.c' -> `acl_getname.c'
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/linux/include -DLOCALEDIR=\"/
usr/local/share/locale\" -DPACKAGE=\"rsbac-admin\" -DCONFIG_RSBAC    -g -O2 
-c acl_getname.c
> gcc -c -I/usr/src/linux/include -DLOCALEDIR=\"/usr/local/share/locale\" 
-DPACKAGE=\"rsbac-admin\" -DCONFIG_RSBAC syscall_wrapper.c
> In file included from syscall_wrapper.c:14:
> /usr/src/linux/include/rsbac/syscall_rsbac.h: In function `rsbac':
> /usr/src/linux/include/rsbac/syscall_rsbac.h:24: error: `__NR_rsbac' 
undeclared (first use in this function)
> /usr/src/linux/include/rsbac/syscall_rsbac.h:24: error: (Each undeclared 
identifier is reported only once
> /usr/src/linux/include/rsbac/syscall_rsbac.h:24: error: for each function it 
appears in.)
> make[2]: *** [librsbac-1.2.2.a] Error 1
> make[2]: Leaving directory `/root/rsbac-admin-v1.2.2/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/rsbac-admin-v1.2.2'
> make: *** [all-recursive-am] Error 2

You gcc somehow seems to include the file /usr/include/asm/unistd.h instead 
of /usr/src/linux/asm/unistd.h. Please copy the second to the first and 
retry, a previous backup copy would probably be wise.

Did you make menuconfig etc. on the kernel source tree before compiling the 
tools? It might be that the asm link is missing.

The 1.2.3-pre2 tools should work well enough, except for rsbac_jail.

Amon.
-- 
http://www.rsbac.org - GnuPG: 2048g/5DEAAA30 2002-10-22



More information about the rsbac mailing list