Giter Site home page Giter Site logo

Comments (3)

marceloleitner avatar marceloleitner commented on August 11, 2024

from lksctp-tools.

Tom-python0121 avatar Tom-python0121 commented on August 11, 2024

@marceloleitner I did what you said.

[root@localhost func_tests]# yum install kernel-modules-extra
Librepo version: 1.12.0 with CURL_GLOBAL_ACK_EINTR support (libcurl/7.61.1 OpenSSL/1.1.1g zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.2.0) libssh/0.9.4/openssl/zlib nghttp2/1.33.0)
Last metadata expiration check: 0:25:01 ago on Thu 24 Jun 2021 03:35:53 PM CST.
Package kernel-modules-extra-4.18.0-305.3.1.el8.aarch64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@localhost func_tests]# vim /etc/modprobe.d/sctp-blacklist.conf
[root@localhost func_tests]# cat /etc/modprobe.d/sctp-blacklist.conf
# This kernel module can be automatically loaded by non-root users. To
# enhance system security, the module is blacklisted by default to ensure
# system administrators make the module available for use as needed.
# See https://access.redhat.com/articles/3760101 for more details.
#
# Remove the blacklist by adding a comment # at the start of the line.
#blacklist sctp
[root@localhost func_tests]# cat /etc/modprobe.d/sctp_diag-blacklist.conf
# This kernel module can be automatically loaded by non-root users. To
# enhance system security, the module is blacklisted by default to ensure
# system administrators make the module available for use as needed.
# See https://access.redhat.com/articles/3760101 for more details.
#
# Remove the blacklist by adding a comment # at the start of the line.
#blacklist sctp_diag
[root@localhost func_tests]# ./test_sockopt
test_sockopt.c  1 BROK : socket: Socket type not supported
DUMP_CORE ../../src/testlib/sctputil.h: 137
Segmentation fault (core dumped)

But it doesn't seem to work.

from lksctp-tools.

Tom-python0121 avatar Tom-python0121 commented on August 11, 2024

yes,I have solve it:The yum install kernel-modules-extra;vim /etc/modprobe.d/sctp-blocklist.conf changes the blocklist to un-blacklist;/sbin/sysctl -p;/sbin/sysctl -w net.ipv4.route.flush=1;modprobe sctp. If libkmod: kmod_config_parse: /etc/modprobe.d/sctp-blocklist.conf line 7: ignoring bad line starting with 'un-blacklist' is displayed, the SCTP module has been added and the ./test_basic and ./test_sockopt commands are executed, which is not an ecological problem.

from lksctp-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.