I upgraded kernel to 2.6.17-gentoo-r2 and now dazuko don't compile. >>> Emerging (1 of 4) sys-fs/dazuko-2.2.0 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking dazuko-2.2.0.tar.gz ;-) * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.17-gentoo-r2 * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking dazuko-2.2.0.tar.gz to /var/tmp/portage/dazuko-2.2.0/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0 ... checking host system type... Linux checking for make utility... ok (make) checking for C compiler... ok (cc) acquiring Linux kernel code configuration... ok checking if Linux is RSBAC patched... no checking if devfs is enabled... no discovered host system... Linux (2.6.17) checking if security module support is enabled... yes verifying capabilities are not built-in... ok locating LSM API header... ok identifying LSM API... ok inspecting suspend function... ok (suspend1) checking whether __d_path() is exported... no (using local copy) inspecting class type... ok (class) disabling ON_CLOSE events (not available for Linux 2.6) configure: creating Makefile configure: creating library/Makefile configure: creating example_c/Makefile ./configure successful ======================= Configuration summary ======================= module events = ON_OPEN ON_EXEC devfs support = no rsbac support = no stacking support = yes local __d_path() = yes module debug = no library 1.x compatibility = yes * Converting Makefile to use M= instead of SUBDIRS= ... [ ok ] * Preparing dazuko module make -C /usr/src/linux M="/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0" modules make[1]: Entering directory `/usr/src/linux-2.6.17-gentoo-r2' CC [M] /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_core.o CC [M] /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_transport.o CC [M] /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.o In file included from /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:20: /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.h:554: warning: initialization from incompatible pointer type /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.h:627: error: unknown field `socket_getpeersec' specified in initializer /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c: In function `dazuko_security_socket_getpeersec': /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:1224: error: structure has no member named `socket_getpeersec' /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:1224: error: structure has no member named `socket_getpeersec' /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:1224: error: structure has no member named `socket_getpeersec' /var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.c:1224: error: structure has no member named `socket_getpeersec' make[2]: *** [/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0/dazuko_linux26_lsm.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [_module_/var/tmp/portage/dazuko-2.2.0/work/dazuko-2.2.0] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r2' make: *** [dummy_rule] Error 2 !!! ERROR: sys-fs/dazuko-2.2.0 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile dazuko-2.2.0.ebuild, line 37: Called linux-mod_src_compile linux-mod.eclass, line 515: Called die !!! Unable to make dummy_rule. !!! If you need support, post the topmost build error, and the call stack if relevant.
Created attachment 93773 [details] Dazuko 2.3.0 ebuild I have written an ebuild for the newwest version of dazuko which supports system call hooking on the GNU/Linux kernel versions 2.6.* even if they don't support LSM
Created attachment 93774 [details, diff] Patch to strip devfs_* functioncalls This is the patch that goes with the above ebuild. It strips the devfs_* function calls out of two files, since the newest kernels have dropped devfs support. It still works fine on my system with udev though.
Created attachment 96205 [details] Dazuko 2.3.1-pre3 For kernel 2.6.18.
(In reply to comment #3) > Created an attachment (id=96205) [edit] > Dazuko 2.3.1-pre3 > > For kernel 2.6.18. > I get the following error :-( it seems that the /usr/src/linux-2.6.18-lsd/include/linux/version.h.tmp it is not created... exist only the /usr/src/linux-2.6.18-lsd/include/linux/version.h file ======================= Configuration summary ======================= module events = ON_OPEN ON_EXEC devfs support = no rsbac support = no stacking support = yes local __d_path() = yes module debug = no library 1.x compatibility = yes * Converting Makefile to use M= instead of SUBDIRS= ... [ ok ] * Preparing dazuko module make -C /usr/src/linux include/linux/version.h include/asm scripts make[1]: Entering directory `/usr/src/linux-2.6.18-lsd' CHK include/linux/version.h ACCESS DENIED open_wr: /usr/src/linux-2.6.18-lsd/include/linux/version.h.tmp /bin/sh: include/linux/version.h.tmp: Permission denied UPD include/linux/version.h mv: cannot stat `include/linux/version.h.tmp': No such file or directory make[1]: *** [include/linux/version.h] Error 1 make[1]: Leaving directory `/usr/src/linux-2.6.18-lsd' make: *** [dummy_rule] Error 2 !!! ERROR: sys-fs/dazuko-2.3.1_pre3 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile dazuko-2.3.1_pre3.ebuild, line 40: Called linux-mod_src_compile linux-mod.eclass, line 469: Called die !!! Unable to make dummy_rule. !!! If you need support, post the topmost build error, and the call stack if relevant. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-sys-fs_-_dazuko-2.3.1_pre3-1913.log" open_wr: /usr/src/linux-2.6.18-lsd/include/linux/version.h.tmp -------------------------------------------------------------------------------- !!! This ebuild is from an overlay: '/usr/local/portage/lsd'
I get the following using the 2.3.1-pre3 ebuild DavidCPU dazuko # ebuild dazuko-2.3.1-pre3.ebuild digest !!! sys-fs/dazuko-2.3.1-pre3 does not follow correct package syntax.
I now get the same error that Leo gets. * Converting Makefile to use M= instead of SUBDIRS= ... [ ok ] * Preparing dazuko module make -C /usr/src/linux include/linux/version.h include/asm scripts make[1]: Entering directory `/usr/src/linux-2.6.18-suspend2' CHK include/linux/version.h ACCESS DENIED open_wr: /usr/src/linux-2.6.18-suspend2/include/linux/version.h.tmp /bin/sh: include/linux/version.h.tmp: Permission denied UPD include/linux/version.h mv: cannot stat `include/linux/version.h.tmp': No such file or directory make[1]: `include/asm' is up to date. make[1]: *** [include/linux/version.h] Error 1 make[1]: Leaving directory `/usr/src/linux-2.6.18-suspend2' make: *** [dummy_rule] Error 2 !!! ERROR: sys-fs/dazuko-2.3.1_pre3 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile dazuko-2.3.1_pre3.ebuild, line 40: Called linux-mod_src_compile linux-mod.eclass, line 469: Called die !!! Unable to make dummy_rule. !!! If you need support, post the topmost build error, and the call stack if relevant. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-sys-fs_-_dazuko-2.3.1_pre3-11303.log" open_wr: /usr/src/linux-2.6.18-suspend2/include/linux/version.h.tmp -------------------------------------------------------------------------------- !!! This ebuild is from an overlay: '/usr/local/portage'
(In reply to comment #6) > I now get the same error that Leo gets. > > * Converting Makefile to use M= instead of SUBDIRS= ... > [ ok ] > * Preparing dazuko module > make -C /usr/src/linux include/linux/version.h include/asm scripts > make[1]: Entering directory `/usr/src/linux-2.6.18-suspend2' > CHK include/linux/version.h > ACCESS DENIED open_wr: > /usr/src/linux-2.6.18-suspend2/include/linux/version.h.tmp > /bin/sh: include/linux/version.h.tmp: Permission denied > UPD include/linux/version.h > mv: cannot stat `include/linux/version.h.tmp': No such file or directory > make[1]: `include/asm' is up to date. > make[1]: *** [include/linux/version.h] Error 1 > make[1]: Leaving directory `/usr/src/linux-2.6.18-suspend2' > make: *** [dummy_rule] Error 2 > > !!! ERROR: sys-fs/dazuko-2.3.1_pre3 failed. > Call stack: > ebuild.sh, line 1546: Called dyn_compile > ebuild.sh, line 937: Called src_compile > dazuko-2.3.1_pre3.ebuild, line 40: Called linux-mod_src_compile > linux-mod.eclass, line 469: Called die > > !!! Unable to make dummy_rule. > !!! If you need support, post the topmost build error, and the call stack if > relevant. > > --------------------------- ACCESS VIOLATION SUMMARY > --------------------------- > LOG FILE = "/var/log/sandbox/sandbox-sys-fs_-_dazuko-2.3.1_pre3-11303.log" > > open_wr: /usr/src/linux-2.6.18-suspend2/include/linux/version.h.tmp > -------------------------------------------------------------------------------- > !!! This ebuild is from an overlay: '/usr/local/portage' dazuko-2.3.3_pre1 works for me
Oh... Right! Was fixed this a long time ago...