HEX
Server: Apache
System: Linux hp3-stn-1011028.hostingp3.local 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: csh958633 (951153)
PHP: 8.3.30
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: //usr/share/setroubleshoot/plugins/device.pyc
�
c�L]c@s^ddlZejdde�ZejZddlTddlmZdefd��YZdS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBs\eZed�Zed�Zed�Zed�Zed�ZdZd�Z	d�Z
RS(sU
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to device $TARGET_PATH.
    s

    SELinux has denied $SOURCE "$ACCESS" access to device $TARGET_PATH.
    $TARGET_PATH is mislabeled, this device has the default label of the /dev directory, which should not
    happen.  All Character and/or Block Devices should have a label.

    You can attempt to change the label of the file using

    restorecon -v '$TARGET_PATH'.

    If this device remains labeled device_t, then this is a bug in SELinux policy.

    Please file a bg report.

    If you look at the other similar devices labels, ls -lZ /dev/SIMILAR, and find a type that would work for $TARGET_PATH,
    you can use chcon -t SIMILAR_TYPE '$TARGET_PATH', If this fixes the problem, you can make this permanent by executing
    semanage fcontext -a -t SIMILAR_TYPE '$FIX_TARGET_PATH'

    If the restorecon changes the context, this indicates that the application that created the device, created it without
    using SELinux APIs.  If you can figure out which application created the device, please file a bug report against this application.

    sV
    Attempt restorecon -v '$TARGET_PATH' or chcon -t SIMILAR_TYPE '$TARGET_PATH'
    sKYou need to change the label on $TARGET_PATH to a type of a similar device.s\# semanage fcontext -a -t SIMILAR_TYPE '$FIX_TARGET_PATH'
# restorecon -v '$FIX_TARGET_PATH'tcCstj|t�dS(N(Rt__init__t__name__(tself((s+/usr/share/setroubleshoot/plugins/device.pyRBscCs5|jdg�r1|jddg�r1|j�SdS(Ntdevice_ttchr_filetblk_file(tmatches_target_typest
has_tclass_intreporttNone(Rtavc((s+/usr/share/setroubleshoot/plugins/device.pytanalyzeEs
(Rt
__module__t_tsummarytproblem_descriptiontfix_descriptiont	then_texttdo_texttfix_cmdRR(((s+/usr/share/setroubleshoot/plugins/device.pyRs					(tgettextttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRR(((s+/usr/share/setroubleshoot/plugins/device.pyt<module>s