OXIESEC PANEL
- Current Dir:
/
/
lib
/
python3.9
/
site-packages
/
tuned
/
plugins
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/13/2025 09:25:13 PM
rwxr-xr-x
📄
__init__.cpython-39.opt-1.pyc
209 bytes
12/02/2024 09:49:29 AM
rw-r--r--
📄
__init__.cpython-39.pyc
209 bytes
12/02/2024 09:49:29 AM
rw-r--r--
📄
base.cpython-39.opt-1.pyc
21.86 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
base.cpython-39.pyc
21.86 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
decorators.cpython-39.opt-1.pyc
1.08 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
decorators.cpython-39.pyc
1.08 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
exceptions.cpython-39.opt-1.pyc
394 bytes
12/02/2024 09:49:29 AM
rw-r--r--
📄
exceptions.cpython-39.pyc
394 bytes
12/02/2024 09:49:29 AM
rw-r--r--
📄
hotplug.cpython-39.opt-1.pyc
4.27 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
hotplug.cpython-39.pyc
4.27 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_acpi.cpython-39.opt-1.pyc
3.36 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_acpi.cpython-39.pyc
3.36 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_audio.cpython-39.opt-1.pyc
4.07 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_audio.cpython-39.pyc
4.07 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_bootloader.cpython-39.opt-1.pyc
24.46 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_bootloader.cpython-39.pyc
24.46 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_cpu.cpython-39.opt-1.pyc
27.42 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_cpu.cpython-39.pyc
27.44 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_disk.cpython-39.opt-1.pyc
16.46 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_disk.cpython-39.pyc
16.46 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_eeepc_she.cpython-39.opt-1.pyc
3.68 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_eeepc_she.cpython-39.pyc
3.68 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_irq.cpython-39.opt-1.pyc
9.02 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_irq.cpython-39.pyc
9.02 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_irqbalance.cpython-39.opt-1.pyc
4.69 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_irqbalance.cpython-39.pyc
4.69 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_modules.cpython-39.opt-1.pyc
5.5 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_modules.cpython-39.pyc
5.5 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_mounts.cpython-39.opt-1.pyc
5.59 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_mounts.cpython-39.pyc
5.59 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_net.cpython-39.opt-1.pyc
23.2 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_net.cpython-39.pyc
23.2 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_rtentsk.cpython-39.opt-1.pyc
1.37 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_rtentsk.cpython-39.pyc
1.37 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_scheduler.cpython-39.opt-1.pyc
53.13 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_scheduler.cpython-39.pyc
53.13 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_script.cpython-39.opt-1.pyc
4.46 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_script.cpython-39.pyc
4.5 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_scsi_host.cpython-39.opt-1.pyc
4.64 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_scsi_host.cpython-39.pyc
4.64 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_selinux.cpython-39.opt-1.pyc
3.07 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_selinux.cpython-39.pyc
3.07 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_service.cpython-39.opt-1.pyc
13.56 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_service.cpython-39.pyc
13.56 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_sysctl.cpython-39.opt-1.pyc
6.15 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_sysctl.cpython-39.pyc
6.15 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_sysfs.cpython-39.opt-1.pyc
3.72 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_sysfs.cpython-39.pyc
3.72 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_systemd.cpython-39.opt-1.pyc
6 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_systemd.cpython-39.pyc
6 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_uncore.cpython-39.opt-1.pyc
5.86 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_uncore.cpython-39.pyc
5.86 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_usb.cpython-39.opt-1.pyc
3.01 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_usb.cpython-39.pyc
3.01 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_video.cpython-39.opt-1.pyc
6.1 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_video.cpython-39.pyc
6.1 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_vm.cpython-39.opt-1.pyc
4.12 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
plugin_vm.cpython-39.pyc
4.12 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
repository.cpython-39.opt-1.pyc
1.93 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
repository.cpython-39.pyc
1.97 KB
12/02/2024 09:49:29 AM
rw-r--r--
Editing: plugin_selinux.cpython-39.pyc
Close
a �Գf � @ sd d dl Z d dlZddlmZ ddlT d dlZd dlmZ d dl m Z ej�� Z G dd� dej�ZdS ) � N� )�base)�*)� exceptions)�commandsc sh e Zd ZdZedd� �Z� fdd�Zedd� �Zdd � Zd d� Z e d�d d� �Zed�dd� �Z � ZS )� SelinuxPlugina� `selinux`:: Plug-in for tuning SELinux options. + SELinux decisions, such as allowing or denying access, are cached. This cache is known as the Access Vector Cache (AVC). When using these cached decisions, SELinux policy rules need to be checked less, which increases performance. The [option]`avc_cache_threshold` option allows adjusting the maximum number of AVC entries. + NOTE: Prior to changing the default value, evaluate the system performance with care. Increasing the value could potentially decrease the performance by making AVC slow. + .Increase the AVC cache threshold for hosts with containers. ==== ---- [selinux] avc_cache_threshold=8192 ---- ==== c C s( d}t j�|�s$d}t j�|�s$d }|S )Nz/sys/fs/selinuxz/selinux)�os�path�exists)�selfr � r �@/usr/lib/python3.9/site-packages/tuned/plugins/plugin_selinux.py�_get_selinux_path$ s zSelinuxPlugin._get_selinux_pathc sT t � | _| �� | _| jd u r&t�d��tj�| jdd�| _ t t| �j|i |�� d S )NzFSELinux is not enabled on your system or incompatible version is used.ZavcZcache_threshold) r �_cmdr Z _selinux_pathr ZNotSupportedPluginExceptionr r �join�_cache_threshold_path�superr �__init__)r �args�kwargs�� __class__r r r - s zSelinuxPlugin.__init__c C s dd iS )N�avc_cache_thresholdr )r r r r �_get_config_options5 s �z!SelinuxPlugin._get_config_optionsc C s d|_ d|_d S )NTF)Z_has_static_tuningZ_has_dynamic_tuning�r �instancer r r �_instance_init; s zSelinuxPlugin._instance_initc C s d S )Nr r r r r �_instance_cleanup? s zSelinuxPlugin._instance_cleanupr c C sL |d u rd S t |�}|dkrD|s@| jj| j||r8tjgndd� |S d S d S )Nr F)Zno_error)�intr Z write_to_filer �errno�ENOENT)r �valueZsim�removeZ thresholdr r r �_set_avc_cache_thresholdB s �z&SelinuxPlugin._set_avc_cache_thresholdc C s&