✏️ 编辑:plugin_selinux.cpython-39.opt-1.pyc
路径:
/usr/lib/python3.9/site-packages/tuned/plugins/__pycache__/plugin_selinux.cpython-39.opt-1.pyc
大小:3.06 KB · 修改:2026-07-21 16:54:01 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �]�i � @ 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� 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"