Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compressing OOT vhba.ko signed module[Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1449

PostPosted: Sun Jan 26, 2020 4:12 pm    Post subject: compressing OOT vhba.ko signed module[Solved] Reply with quote

After signin OOT module as in method,
I went on compressing module.

I don't know what is the expected sequence for signing and compressing, e.g. which one first, which one last, in other word whether compressing as signed module or signing a compressed module is expected.

I any case, as far as VHBA is concerned it doesn't work for in any of the two cases above, using XZ here.

In the opposite only signing the module after emerge installation does work, I guess emerge does the right declarative job using a module name that doesn't change when signing, so that fits.

Compression does require the module name 'name.ko' to change to 'name.ko.xz' so the initial declarative job done by emerge doesn't match the post compression situation.

Has anyone has an idea how to 'correct' declaration at module level so that the name.ko.xz isn't rejected anymore as in
Code:
modprobe vhba.ko.xz
modprobe: FATAL: Module vhba.ko.xz not found in directory /lib/modules/5.4.15-gentoo-iptables
Code:
modprobe vhba
modprobe: ERROR: could not insert 'vhba': Invalid argument
this below report occurs when signing after compression:
Code:
grep vhba /lib/modules/5.4.15-gentoo-iptables/*
...
/lib/modules/5.4.15-gentoo-iptables/modules.dep:block/vhba.ko.xz:
Binary file /lib/modules/5.4.15-gentoo-iptables/modules.dep.bin matches
...
which seems too little compared to a kernel tree module, e.g. tun here is
Code:
modprobe tun
working fine,
which matches with
Code:
grep tun  /lib/modules/5.4.15-gentoo-iptables/*
...
/lib/modules/5.4.15-gentoo-iptables/modules.alias:alias devname:net/tun tun
/lib/modules/5.4.15-gentoo-iptables/modules.alias:alias char-major-10-200 tun
Binary file /lib/modules/5.4.15-gentoo-iptables/modules.alias.bin matches
/lib/modules/5.4.15-gentoo-iptables/modules.dep:kernel/drivers/net/tun.ko.xz:
Binary file /lib/modules/5.4.15-gentoo-iptables/modules.dep.bin matches
/lib/modules/5.4.15-gentoo-iptables/modules.devname:tun net/tun c10:200
/lib/modules/5.4.15-gentoo-iptables/modules.order:kernel/drivers/net/tun.ko
/lib/modules/5.4.15-gentoo-iptables/modules.symbols:alias symbol:tun_get_socket tun
/lib/modules/5.4.15-gentoo-iptables/modules.symbols:alias symbol:tun_get_tx_ring tun
/lib/modules/5.4.15-gentoo-iptables/modules.symbols:alias symbol:tun_ptr_to_xdp tun
/lib/modules/5.4.15-gentoo-iptables/modules.symbols:alias symbol:tun_xdp_to_ptr tun
/lib/modules/5.4.15-gentoo-iptables/modules.symbols:alias symbol:tun_ptr_free tun
/lib/modules/5.4.15-gentoo-iptables/modules.symbols:alias symbol:tun_is_xdp_frame tun
Binary file /lib/modules/5.4.15-gentoo-iptables/modules.symbols.bin matches
...


Thks 4 ur attention


Last edited by CaptainBlood on Sun Jan 26, 2020 6:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1449

PostPosted: Sun Jan 26, 2020 5:12 pm    Post subject: Reply with quote

Clue for signing and compressing precedence.
Thks 4 ur attention.


Last edited by CaptainBlood on Sun Jan 26, 2020 6:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1449

PostPosted: Sun Jan 26, 2020 6:26 pm    Post subject: Reply with quote

Code:
depmod -a
does the trick, maybe overkilling.
Thks 4 ur attention.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum