Add a New Comment Rich Markup
Jump to the original submission
I do not know why depmod is expecting to find dazuko.ko modules in "security", "arch/i386/kernel", and "crypto" directories, but that really isn't important right now. The main issue is to find out why you can't insert the module with insmod. After running insmod, the main syslog log file should show more detailed information about what is going on. Please look at the output of: tail /var/log/messages or dmesg | tail
Now when I use the command 'make install' appears so: root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4# make install mkdir -p /lib/modules/2.6.22.14-generic/extra cp dazuko.ko /lib/modules/2.6.22.14-generic/extra /sbin/depmod -ae WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/security/dazuko.ko: No such device or address WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/arch/i386/kernel/dazuko.ko: No such device or address WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/crypto/dazuko.ko: No such device or address root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4# rm /lib/modules/2.6.22.14-generic/extra/dazuko.ko root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4# insmod ./dazuko.ko insmod: error inserting './dazuko.ko': -1 Invalid parameters root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4# /sbin/insmod ./dazuko.ko insmod: error inserting './dazuko.ko': -1 Invalid parameters root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4# make install mkdir -p /lib/modules/2.6.22.14-generic/extra cp dazuko.ko /lib/modules/2.6.22.14-generic/extra /sbin/depmod -ae WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/security/dazuko.ko: No such device or address WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/arch/i386/kernel/dazuko.ko: No such device or address WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/crypto/dazuko.ko: No such device or address root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4#
Then the old version is removed and you can install the new version: make install
After that I do anything else? Or and only that?
rm /lib/modules/2.6.22.14-generic/extra/dazuko.ko
And how do I do to remove the old version?
Now I gave the command 'make install' and this appeared: root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4# make install /lib/modules/2.6.22.14-generic/extra/dazuko.ko !! a dazuko module is already installed !! !! please delete the old version before installing this one !! make: ** [install] Erro 1 I just exclude the other version
Intesting. "make install" copied the module to: /lib/modules/2.6.22.9 but depmod is reading the modules in: /lib/modules/2.6.22-14-generic Do you have a 2.6.22.9 kernel or 2.6.22-14-generic kernel? (The output of "uname -r" will show this.)
The downloaded version 2.3.4 And did the move again and the command 'make' run But when run the command 'make install' is the following: root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4# make install find: /lib/modules/2.6.22.9/: Arquivo ou diretório inexistente mkdir -p /lib/modules/2.6.22.9/extra cp dazuko.ko /lib/modules/2.6.22.9/extra /sbin/depmod -ae WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/security/dazuko.ko: No such device or address WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/arch/i386/kernel/dazuko.ko: No such device or address WARNING: Can't read module /lib/modules/2.6.22-14-generic/kernel/crypto/dazuko.ko: No such device or address root@info:/opt/grisoft/avg7/src/dazuko/dazuko-2.3.4#
For the 2.6.22 kernel you need Dazuko version 2.3.4: http://www.dazuko.org/downloads.shtml
When I give the command make it appears that: make -C /lib/modules/2.6.22-14-generic/build SUBDIRS="/opt/grisoft/avg7/src/dazuko/dazuko-2.3.3" modules make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.22-14-generic' CC [M] /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.o In file included from /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:23: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:608: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:609: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:651: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:655: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:659: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:660: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:664: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:668: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:669: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:673: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:677: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:680: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:683: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:684: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.h:685: warning: initialization from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_create’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:381: warning: passing argument 3 of ‘dazuko_security_ops.inode_create’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:381: error: too few arguments to function ‘dazuko_security_ops.inode_create’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:381: warning: passing argument 3 of ‘dazuko_security_default_ops.inode_create’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:381: error: too few arguments to function ‘dazuko_security_default_ops.inode_create’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_link’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:395: warning: passing argument 2 of ‘dazuko_security_ops.inode_link’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:395: warning: passing argument 3 of ‘dazuko_security_ops.inode_link’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:395: error: too few arguments to function ‘dazuko_security_ops.inode_link’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:395: warning: passing argument 2 of ‘dazuko_security_default_ops.inode_link’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:395: warning: passing argument 3 of ‘dazuko_security_default_ops.inode_link’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:395: error: too few arguments to function ‘dazuko_security_default_ops.inode_link’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_unlink’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:409: error: too few arguments to function ‘dazuko_security_ops.inode_unlink’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:409: error: too few arguments to function ‘dazuko_security_default_ops.inode_unlink’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_symlink’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:416: warning: passing argument 3 of ‘dazuko_security_ops.inode_symlink’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:416: error: too few arguments to function ‘dazuko_security_ops.inode_symlink’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:416: warning: passing argument 3 of ‘dazuko_security_default_ops.inode_symlink’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:416: error: too few arguments to function ‘dazuko_security_default_ops.inode_symlink’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_mkdir’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:430: warning: passing argument 3 of ‘dazuko_security_ops.inode_mkdir’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:430: error: too few arguments to function ‘dazuko_security_ops.inode_mkdir’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:430: warning: passing argument 3 of ‘dazuko_security_default_ops.inode_mkdir’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:430: error: too few arguments to function ‘dazuko_security_default_ops.inode_mkdir’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_rmdir’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:444: error: too few arguments to function ‘dazuko_security_ops.inode_rmdir’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:444: error: too few arguments to function ‘dazuko_security_default_ops.inode_rmdir’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_mknod’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:451: warning: passing argument 3 of ‘dazuko_security_ops.inode_mknod’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:451: error: too few arguments to function ‘dazuko_security_ops.inode_mknod’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:451: warning: passing argument 3 of ‘dazuko_security_default_ops.inode_mknod’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:451: error: too few arguments to function ‘dazuko_security_default_ops.inode_mknod’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_rename’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:465: warning: passing argument 3 of ‘dazuko_security_ops.inode_rename’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:465: warning: passing argument 4 of ‘dazuko_security_ops.inode_rename’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:465: error: too few arguments to function ‘dazuko_security_ops.inode_rename’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:465: warning: passing argument 3 of ‘dazuko_security_default_ops.inode_rename’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:465: warning: passing argument 4 of ‘dazuko_security_default_ops.inode_rename’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:465: error: too few arguments to function ‘dazuko_security_default_ops.inode_rename’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_readlink’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:479: error: too few arguments to function ‘dazuko_security_ops.inode_readlink’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:479: error: too few arguments to function ‘dazuko_security_default_ops.inode_readlink’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_setattr’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:524: warning: passing argument 2 of ‘dazuko_security_ops.inode_setattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:524: error: too few arguments to function ‘dazuko_security_ops.inode_setattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:524: warning: passing argument 2 of ‘dazuko_security_default_ops.inode_setattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:524: error: too few arguments to function ‘dazuko_security_default_ops.inode_setattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_setxattr’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:544: warning: passing argument 2 of ‘dazuko_security_ops.inode_setxattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:544: warning: passing argument 4 of ‘dazuko_security_ops.inode_setxattr’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:544: error: too few arguments to function ‘dazuko_security_ops.inode_setxattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:544: warning: passing argument 2 of ‘dazuko_security_default_ops.inode_setxattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:544: warning: passing argument 4 of ‘dazuko_security_default_ops.inode_setxattr’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:544: error: too few arguments to function ‘dazuko_security_default_ops.inode_setxattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_post_setxattr’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:556: warning: passing argument 2 of ‘dazuko_security_ops.inode_post_setxattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:556: warning: passing argument 4 of ‘dazuko_security_ops.inode_post_setxattr’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:556: error: too few arguments to function ‘dazuko_security_ops.inode_post_setxattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:556: warning: passing argument 2 of ‘dazuko_security_default_ops.inode_post_setxattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:556: warning: passing argument 4 of ‘dazuko_security_default_ops.inode_post_setxattr’ makes pointer from integer without a cast /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:556: error: too few arguments to function ‘dazuko_security_default_ops.inode_post_setxattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_getxattr’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:561: warning: passing argument 2 of ‘dazuko_security_ops.inode_getxattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:561: error: too few arguments to function ‘dazuko_security_ops.inode_getxattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:561: warning: passing argument 2 of ‘dazuko_security_default_ops.inode_getxattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:561: error: too few arguments to function ‘dazuko_security_default_ops.inode_getxattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_listxattr’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:568: error: too few arguments to function ‘dazuko_security_ops.inode_listxattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:568: error: too few arguments to function ‘dazuko_security_default_ops.inode_listxattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c: In function ‘dazuko_security_inode_removexattr’: /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:576: warning: passing argument 2 of ‘dazuko_security_ops.inode_removexattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:576: error: too few arguments to function ‘dazuko_security_ops.inode_removexattr’ /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:576: warning: passing argument 2 of ‘dazuko_security_default_ops.inode_removexattr’ from incompatible pointer type /opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.c:576: error: too few arguments to function ‘dazuko_security_default_ops.inode_removexattr’ make[2]: ** [/opt/grisoft/avg7/src/dazuko/dazuko-2.3.3/dazuko_linux26_lsm.o] Erro 1 make[1]: ** [_module_/opt/grisoft/avg7/src/dazuko/dazuko-2.3.3] Erro 2 make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.22-14-generic' make: ** [dummy_rule] Erro 2
The file "dazuko.ko" is created by compiling the source code. In general, you will follow these steps: tar xzvf dazuko-2.3.3.tar.gz cd dazuko-2.3.3 ./configure --without-dep make make install If you are not familiar with compiling source code and these steps are strange to you, you will probably have difficulties creating the kernel module.
Help me!!!! From where I copy The folder dazuko - 2.3.3 not have the file dazuko.ko
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 2 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.12