mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-22 23:26:58 +00:00
Documentation fixes.
This commit is contained in:
parent
fc597fed99
commit
0fb0940fe3
@ -24,7 +24,7 @@ from . import contextquery
|
||||
|
||||
class FSUseQuery(contextquery.ContextQuery):
|
||||
|
||||
"""fs_use_* query."""
|
||||
"""Query fs_use_* statements."""
|
||||
|
||||
def __init__(self, policy,
|
||||
ruletype=[],
|
||||
@ -63,7 +63,7 @@ class FSUseQuery(contextquery.ContextQuery):
|
||||
self.set_range(range_)
|
||||
|
||||
def results(self):
|
||||
"""Generator which yields all matching genfscons."""
|
||||
"""Generator which yields all matching fs_use_* statements."""
|
||||
|
||||
for fsu in self.policy.fs_uses():
|
||||
if self.ruletype and not fsu.ruletype in self.ruletype:
|
||||
|
@ -24,7 +24,7 @@ from . import contextquery
|
||||
|
||||
class GenfsconQuery(contextquery.ContextQuery):
|
||||
|
||||
"""Genfscon query."""
|
||||
"""Query genfscon statements."""
|
||||
|
||||
def __init__(self, policy,
|
||||
fs="", fs_regex=False,
|
||||
|
@ -29,7 +29,7 @@ from . import contextquery
|
||||
|
||||
class NodeconQuery(contextquery.ContextQuery):
|
||||
|
||||
"""Nodecon query."""
|
||||
"""Query nodecon statements."""
|
||||
|
||||
def __init__(self, policy,
|
||||
net="", net_overlap=False,
|
||||
@ -65,7 +65,7 @@ class NodeconQuery(contextquery.ContextQuery):
|
||||
self.set_range(range_)
|
||||
|
||||
def results(self):
|
||||
"""Generator which yields all matching genfscons."""
|
||||
"""Generator which yields all matching nodecons."""
|
||||
|
||||
for n in self.policy.nodecons():
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user