shell bypass 403
曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.かつては雑草やヨモギと共に雨や露を分かち合っていたが、今では松やヒノキと共に霜や雪に耐えている。曾与蒿藜同雨露,Once sharing rain and dew with weeds and wormwood, now enduring frost and snow with pines and cypresses.终随松柏到冰霜.曾与蒿藜同雨露한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.,终随松柏到冰霜.譖セ荳手珍阯懷酔髮ィ髴イ�檎サ磯囂譚セ譟丞芦蜀ー髴�曾与蒿藜同雨露,鏇句笌钂胯棞鍚岄洦闇诧紝缁堥殢鏉炬煆鍒板啺闇�终随松柏到冰霜.曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.曾与蒿藜同雨露,终随松柏到冰霜.
import os
from . import base
from .decorators import *
import tuned.logs
from tuned.plugins import exceptions
from tuned.utils.commands import commands
log = tuned.logs.get()
class SelinuxPlugin(base.Plugin):
"""
Plugin for tuning SELinux options.
"""
@classmethod
def _get_selinux_path(self):
path = "/sys/fs/selinux"
if not os.path.exists(path):
path = "/selinux"
if not os.path.exists(path):
path = None
return path
def __init__(self, *args, **kwargs):
self._cmd = commands()
self._selinux_path = self._get_selinux_path()
if self._selinux_path is None:
raise exceptions.NotSupportedPluginException("SELinux is not enabled on your system or incompatible version is used.")
self._cache_threshold_path = os.path.join(self._selinux_path, "avc", "cache_threshold")
super(SelinuxPlugin, self).__init__(*args, **kwargs)
@classmethod
def _get_config_options(self):
return {
"avc_cache_threshold" : None,
}
def _instance_init(self, instance):
instance._has_static_tuning = True
instance._has_dynamic_tuning = False
def _instance_cleanup(self, instance):
pass
@command_set("avc_cache_threshold")
def _set_avc_cache_threshold(self, value, sim):
if value is None:
return None
threshold = int(value)
if threshold >= 0:
if not sim:
self._cmd.write_to_file(self._cache_threshold_path, threshold)
return threshold
else:
return None
@command_get("avc_cache_threshold")
def _get_avc_cache_threshold(self):
value = self._cmd.read_file(self._cache_threshold_path)
if len(value) > 0:
return int(value)
return None