mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-17 20:55:23 +00:00
policyrep.pyi: Remove incorrect attribute overrides.
This fixes mypy issues. Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
parent
6a00d5d5f3
commit
ee21412234
@ -139,12 +139,6 @@ class Bounds(PolicyObject):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class BoundsRuletype(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
typebounds: int = ...
|
||||
|
||||
class Category(PolicySymbol):
|
||||
@ -337,12 +331,6 @@ class ConstraintIterator(PolicyIterator):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class ConstraintRuletype(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
constrain: int = ...
|
||||
mlsconstrain: int = ...
|
||||
mlsvalidatetrans: int = ...
|
||||
@ -397,12 +385,6 @@ class DefaultRange(Default):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class DefaultRangeValue(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
high: int = ...
|
||||
low: int = ...
|
||||
low_high: int = ...
|
||||
@ -410,24 +392,12 @@ class DefaultRangeValue(PolicyEnum):
|
||||
def from_default_range(self, range: Optional[int]) -> Optional[DefaultRangeValue]: ...
|
||||
|
||||
class DefaultRuletype(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
default_range: int = ...
|
||||
default_role: int = ...
|
||||
default_type: int = ...
|
||||
default_user: int = ...
|
||||
|
||||
class DefaultValue(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
glblub: int = ...
|
||||
source: int = ...
|
||||
target: int = ...
|
||||
@ -486,12 +456,6 @@ class FSUseIterator(OcontextIterator):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class FSUseRuletype(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
fs_use_task: int = ...
|
||||
fs_use_trans: int = ...
|
||||
fs_use_xattr: int = ...
|
||||
@ -573,12 +537,6 @@ class GenfsconOcontextIterator(OcontextIterator):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class HandleUnknown(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
allow: int = ...
|
||||
deny: int = ...
|
||||
reject: int = ...
|
||||
@ -867,12 +825,6 @@ class MLSRuleIterator(HashtabIterator):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class MLSRuletype(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
range_transition: int = ...
|
||||
|
||||
class Netifcon(Ocontext):
|
||||
@ -924,12 +876,6 @@ class Nodecon(Ocontext):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class NodeconIPVersion(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
ipv4: int = ...
|
||||
ipv6: int = ...
|
||||
|
||||
@ -1047,12 +993,6 @@ class PolicyCapabilityIterator(EbitmapIterator):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class PolicyEnum(enum.Enum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
@classmethod
|
||||
def lookup(self, value) -> Any: ...
|
||||
def __eq__(self, other) -> bool: ...
|
||||
@ -1112,12 +1052,6 @@ class PolicySymbol(PolicyObject):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class PolicyTarget(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
selinux: int = ...
|
||||
xen: int = ...
|
||||
|
||||
@ -1147,12 +1081,6 @@ class PortconIterator(OcontextIterator):
|
||||
def __setstate__(self, state) -> Any: ...
|
||||
|
||||
class PortconProtocol(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
dccp: int = ...
|
||||
sctp: int = ...
|
||||
tcp: int = ...
|
||||
@ -1173,12 +1101,6 @@ class PortconRange(Tuple[int, int]):
|
||||
def _make(self, *args, **kwargs) -> Any: ...
|
||||
|
||||
class RBACRuletype(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
allow: int = ...
|
||||
role_transition: int = ...
|
||||
|
||||
@ -1460,12 +1382,6 @@ class TERuleIterator(PolicyIterator):
|
||||
class TERuleNoFilename(AttributeError, setools.exception.PolicyrepException): ...
|
||||
|
||||
class TERuletype(PolicyEnum):
|
||||
__new__: Any = ...
|
||||
_generate_next_value_: Any = ...
|
||||
_member_map_: Any = ...
|
||||
_member_names_: Any = ...
|
||||
_member_type_: Any = ...
|
||||
_value2member_map_: Any = ...
|
||||
allow: int = ...
|
||||
allowxperm: int = ...
|
||||
auditallow: int = ...
|
||||
|
Loading…
Reference in New Issue
Block a user