Modify

Opened 4 years ago

Closed 3 years ago

#17248 closed defect (fixed)

strongswan 5.1.3 uses modprobe

Reported by: gamanakis@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Attitude Adjustment 12.09
Keywords: strongswan, modprobe Cc: luka@…

Description

There seems to be a bug with strongswan 5.1.3. Commit 39377 (https://dev.openwrt.org/changeset/39377/packages/net/strongswan) replaces insmod with modprobe which is not available on Attitude Adjustment 12.09.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by anonymous

The following should be the right patch.
(should be placed under feeds/packages/net/strongswan/patches/201-kmodloader.patch)

--- a/src/starter/netkey.c
+++ b/src/starter/netkey.c
@@ -31,7 +31,7 @@ bool starter_netkey_init(void)
                /* af_key module makes the netkey proc interface visible */
                if (stat(PROC_MODULES, &stb) == 0)
                {
-                       ignore_result(system("modprobe -qv af_key"));
+                       ignore_result(system("insmod af_key 2>&1 >/dev/null"));
                }

                /* now test again */
@@ -45,11 +45,11 @@ bool starter_netkey_init(void)
        /* make sure that all required IPsec modules are loaded */
        if (stat(PROC_MODULES, &stb) == 0)
        {
-               ignore_result(system("modprobe -qv ah4"));
-               ignore_result(system("modprobe -qv esp4"));
-               ignore_result(system("modprobe -qv ipcomp"));
-               ignore_result(system("modprobe -qv xfrm4_tunnel"));
-               ignore_result(system("modprobe -qv xfrm_user"));
+               ignore_result(system("insmod ah4 2>&1 >/dev/null"));
+               ignore_result(system("insmod esp4 2>&1 >/dev/null"));
+               ignore_result(system("insmod ipcomp 2>&1 >/dev/null"));
+               ignore_result(system("insmod xfrm4_tunnel 2>&1 >/dev/null"));
+               ignore_result(system("insmod xfrm_user 2>&1 >/dev/null"));
        }

        DBG2(DBG_APP, "found netkey IPsec stack");

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:3 Changed 3 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

modprobe is available in current versions

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.