PATH: //lib64/python3.9/site-packages/setools
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 boolquery.py
↓
X
📄 boundsquery.py
↓
X
📄 categoryquery.py
↓
X
📁 checker/
X
📄 commonquery.py
↓
X
📄 constraintquery.py
↓
X
📄 defaultquery.py
↓
X
📄 descriptors.py
↓
X
📄 devicetreeconquery.py
↓
X
📁 diff/
X
📄 dta.py
↓
X
📄 exception.py
↓
X
📄 fsusequery.py
↓
X
📄 genfsconquery.py
↓
X
📄 ibendportconquery.py
↓
X
📄 ibpkeyconquery.py
↓
X
📄 infoflow.py
↓
X
📄 initsidquery.py
↓
X
📄 iomemconquery.py
↓
X
📄 ioportconquery.py
↓
X
📄 mixins.py
↓
X
📄 mlsrulequery.py
↓
X
📄 netifconquery.py
↓
X
📄 nodeconquery.py
↓
X
📄 objclassquery.py
↓
X
📄 pcideviceconquery.py
↓
X
📄 perm_map
↓
X
📄 permmap.py
↓
X
📄 pirqconquery.py
↓
X
📄 polcapquery.py
↓
X
📄 policyrep.cpython-39-x86_64-linux-gnu.so
↓
X
📄 policyrep.pyi
↓
X
📄 portconquery.py
↓
X
📄 py.typed
↓
X
📄 query.py
↓
X
📄 rbacrulequery.py
↓
X
📄 rolequery.py
↓
X
📄 sensitivityquery.py
↓
X
📄 terulequery.py
↓
X
📄 typeattrquery.py
↓
X
📄 typequery.py
↓
X
📄 userquery.py
↓
X
📄 util.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: query.py
# Copyright 2014-2015, Tresys Technology, LLC # Copyright 2018, Chris PeBenito <pebenito@ieee.org> # # SPDX-License-Identifier: LGPL-2.1-only # from abc import ABC, abstractmethod from logging import Logger from typing import Iterable from .policyrep import SELinuxPolicy class PolicyQuery(ABC): """Abstract base class for SELinux policy queries.""" log: Logger policy: SELinuxPolicy def __init__(self, policy: SELinuxPolicy, **kwargs) -> None: self.policy = policy # keys are sorted in reverse order so regex settings # are set before the criteria, e.g. name_regex # is set before name. This ensures correct behavior # since the criteria descriptors are sensitve to # regex settings. for name in sorted(kwargs.keys(), reverse=True): attr = getattr(self, name, None) # None is not callable if callable(attr): raise ValueError("Keyword parameter {0} conflicts with a callable.".format(name)) setattr(self, name, kwargs[name]) @abstractmethod def results(self) -> Iterable: """ Generator which returns the matches for the query. This method should be overridden by subclasses. """ pass
SIMPAN PERUBAHAN