MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/leapp/repos.d/system_upgrade/el7toel8/actors/sctpconfigread/actor.py
from leapp.actors import Actor
from leapp.libraries.actor.sctplib import is_sctp_wanted
from leapp.models import ActiveKernelModulesFacts, SCTPConfig
from leapp.tags import FactsPhaseTag, IPUWorkflowTag


class SCTPConfigRead(Actor):
    """
    Determines whether or not the SCTP kernel module might be wanted.

    This actor determines whether or not the SCTP is currently used by this machine or has been quite
    recently used (1 month timeframe). In case it has been used it will issue a SCTPConfig message that
    defines the decision whether or not the SCTP module should be removed from the module blacklist on RHEL8.
    """
    name = 'sctp_read_status'
    consumes = (ActiveKernelModulesFacts,)
    produces = (SCTPConfig,)
    tags = (FactsPhaseTag, IPUWorkflowTag)

    def process(self):
        self.produce(SCTPConfig(wanted=is_sctp_wanted()))