def METHOD_NAME(self):
    for entry in self.environment[osetupcons.SystemEnv.SELINUX_PORTS]:
        rc, stdout, stderr = self.execute(
            (self.command.get('semanage'), 'port', '-l')
        )
        if not any(
            re.match(
                '{t}.*{p}'.format(t=entry['type'], p=entry['port']),
                line
            ) for line in stdout
        ):
            rc, stdout, stderr = self.execute(
                (
                    self.command.get('semanage'),
                    'port',
                    '-a',
                    '-t', entry['type'],
                    '-p', entry['protocol'],
                    entry['port']
                ),
            )
    for entry in self.environment[osetupcons.SystemEnv.SELINUX_CONTEXTS]:
        rc, stdout, stderr = self.execute(
            (self.command.get('semanage'), 'fcontext', '-C', '-l')
        )
        if not any(
            re.match(
                '{p}.*{t}'.format(p=entry['pattern'], t=entry['type']),
                line
            ) for line in stdout
        ):
            rc, stdout, stderr = self.execute(
                (
                    self.command.get('semanage'),
                    'fcontext',
                    '-a',
                    '-t', entry['type'],
                    entry['pattern']
                )
            )
    for path in self.environment[
        osetupcons.SystemEnv.SELINUX_RESTORE_PATHS
    ]:
        rc, stdout, stderr = self.execute(
            (
                self.command.get('restorecon'),
                '-r',
                path
            )
        )
        if rc != 0:
            self.logger.error(
                _('Failed to refresh SELINUX context for {path}').format(
                    path=path
                )
            )
    for entry in self.environment[osetupcons.SystemEnv.SELINUX_BOOLEANS]:
        rc, stdout, stderr = self.execute(
            (
                self.command.get('semanage'),
                'boolean',
                '--modify',
                '--{state}'.format(state=entry['state']),
                entry['boolean']
            )
        )
        if rc != 0:
            self.logger.error(
                _(
                    'Failed to modify selinux boolean {boolean}, please '
                    'make sure it is set to {state}.'
                ).format(
                    boolean=entry['boolean'],
                    state=entry['state'],
                )
            )