← Back
Editing: vbetool.cpython-312.opt-1.pyc
� �Z` � � � d dl Z e j dd�� Zej Zd dl� d dlmZ d dlZd dlZ G d� de� Zy) � Nzsetroubleshoot-pluginsT)�fallback)�*)�Pluginc �p � e Zd Z ed� Z ed� Z ed� ZdZ ed� Z ed� Z dZ d� Zd � Zy )�pluginzS SELinux has prevented vbetool from performing an unsafe memory operation. a� SELinux denied an operation requested by $SOURCE, a program used to alter video hardware state. This program is known to use an unsafe operation on system memory but so are a number of malware/exploit programs which masquerade as vbetool. This tool is used to reset video state when a machine resumes from a suspend. If your machine is not resuming properly your only choice is to allow this operation and reduce your system security against such malware. z� If you decide to continue to run the program in question you will need to allow this operation. This can be done on the command line by executing: # setsebool -P mmap_low_allowed 1 z)/usr/sbin/setsebool -P mmap_low_allowed 1zfIf you want to ignore this AVC because it is dangerous and your machine seems to be working correctly.zRyou must tell SELinux about this by enabling the vbetool_mmap_zero_ignore boolean.z)# setsebool -P vbetool_mmap_zero_ignore 1c �f � t j | t � d| _ t d� | _ y )NTzTurn off memory protection)r �__init__�__name__�fixable�_�button_text)�selfs �,/usr/share/setroubleshoot/plugins/vbetool.pyr zplugin.__init__; s% � �����h�'�����7�8��� c �� � |j dg� rN|j dg� r<t j |j � j dk( r| j � S y )N� mmap_zero� vbetool_tr )�has_any_access_in�matches_source_types�os�stat�spath�st_uid�report)r �avcs r �analyzezplugin.analyze@ sN � ��!�!�;�-�0��(�(�+��7����� � �"�)�)�Q�.� �;�;�=� �r N) r � __module__�__qualname__r �summary�problem_description�fix_description�fix_cmd�if_text� then_text�do_textr r � r r r r s` � � � � �G� � � �� � � �O� :�G��x�y�G��f�g�I�9�G�9� r r ) �gettext�translationr �setroubleshoot.util�setroubleshoot.Pluginr �rer r r&