PATH: //proc/self/root/lib64/python3.9/site-packages/setools/diff
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 bool.py
↓
X
📄 bounds.py
↓
X
📄 commons.py
↓
X
📄 conditional.py
↓
X
📄 constraints.py
↓
X
📄 context.py
↓
X
📄 default.py
↓
X
📄 descriptors.py
↓
X
📄 difference.py
↓
X
📄 fsuse.py
↓
X
📄 genfscon.py
↓
X
📄 ibendportcon.py
↓
X
📄 ibpkeycon.py
↓
X
📄 initsid.py
↓
X
📄 mls.py
↓
X
📄 mlsrules.py
↓
X
📄 netifcon.py
↓
X
📄 nodecon.py
↓
X
📄 objclass.py
↓
X
📄 polcap.py
↓
X
📄 portcon.py
↓
X
📄 properties.py
↓
X
📄 rbacrules.py
↓
X
📄 roles.py
↓
X
📄 terules.py
↓
X
📄 typeattr.py
↓
X
📄 types.py
↓
X
📄 typing.py
↓
X
📄 users.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: polcap.py
# Copyright 2016, Tresys Technology, LLC # # SPDX-License-Identifier: LGPL-2.1-only # from .descriptors import DiffResultDescriptor from .difference import Difference, SymbolWrapper class PolCapsDifference(Difference): """Determine the difference in polcaps between two policies.""" added_polcaps = DiffResultDescriptor("diff_polcaps") removed_polcaps = DiffResultDescriptor("diff_polcaps") def diff_polcaps(self) -> None: """Generate the difference in polcaps between the policies.""" self.log.info("Generating policy cap differences from {0.left_policy} to {0.right_policy}". format(self)) self.added_polcaps, self.removed_polcaps, _ = self._set_diff( (SymbolWrapper(n) for n in self.left_policy.polcaps()), (SymbolWrapper(n) for n in self.right_policy.polcaps())) # # Internal functions # def _reset_diff(self) -> None: """Reset diff results on policy changes.""" self.log.debug("Resetting policy capability differences") self.added_polcaps = None self.removed_polcaps = None
SIMPAN PERUBAHAN