[rsbac] Anyone tried these combinations?

Michal Medvecky M.Medvecky at sh.cvut.cz
Tue Nov 18 12:30:25 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
make  all-recursive
make[1]: Entering directory `/root/rsbac-admin-v1.2.2'
Making all in intl
make[2]: Entering directory `/root/rsbac-admin-v1.2.2/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/rsbac-admin-v1.2.2/intl'
Making all in po
make[2]: Entering directory `/root/rsbac-admin-v1.2.2/po'
( if test 'x.' != 'x.'; then \
    posrcprefix='../'; \
  else \
    posrcprefix="../"; \
  fi; \
  rm -f POTFILES-t POTFILES \
    && (sed -e '/^#/d' -e '/^[  ]*$/d' \
            -e "s at .*@   $posrcprefix& \\\\@" < ./POTFILES.in \
        | sed -e '$s/\\$//') > POTFILES-t \
    && chmod a-w POTFILES-t \
    && mv POTFILES-t POTFILES )
cd .. \
  && CONFIG_FILES=po/Makefile.in CONFIG_HEADERS= \
       /bin/sh ./config.status
creating po/Makefile.in
creating po/POTFILES
creating po/Makefile
make[2]: Leaving directory `/root/rsbac-admin-v1.2.2/po'
make[2]: Entering directory `/root/rsbac-admin-v1.2.2/po'
file=./`echo de | sed 's,.*/,,'`.gmo \
  && rm -f $file && /usr/bin/msgfmt --statistics -o $file de.po
411 translated messages, 17 fuzzy translations, 7 untranslated messages.
file=./`echo ru | sed 's,.*/,,'`.gmo \
  && rm -f $file && /usr/bin/msgfmt --statistics -o $file ru.po
427 translated messages, 8 untranslated messages.
make[2]: Leaving directory `/root/rsbac-admin-v1.2.2/po'
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


This is the error message from 'vanilla' rsbac-admin-1.2.2. We were trying to patch it ourselves, but were unsuccessfull.

triton:~# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.2/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.2 (Debian)

(same error with 2.95.4)

Kernel 2.4.22+xfs+jari(cryptoapi)+rsbac-1.2.2

We have "successfully" compiled rsbac-admin-1.2.3-rc2 against 2.4.22-rsbac-1.2.2 kernel on some debian-testing, moved to that machine and it seems to work a bit, but sometimes says:

ld.so: Incorrectly built binary which accesses errno or h_errno directly.
ld.so: See /usr/share/doc/libc6/FAQ.gz.

ii  libc6          2.3.2.ds1-10   GNU C Library: Shared libraries and Timezone
ii  libc6-dev      2.3.2.ds1-10   GNU C Library: Development Libraries and Hea


Anyway, thanks for developing rsbac. I was really tired yesterday after moving couple of servers to different location and then re-installing one of my machines to rsbac.

Thanks,

Michal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/ugLQI4dMYFEaiukRAhPlAJoC3mxVXO272BDsfC10FNgAqlJVPACfbJRd
vj9MiQxX4/0P9oX9SXAyigk=
=4qxi
-----END PGP SIGNATURE-----


More information about the rsbac mailing list