Skip to content

Commit f7d0bd2

Browse files
authored
Merge pull request #137 from cgzones/typos
Fix typos
2 parents 305c8fa + 8df3dbe commit f7d0bd2

47 files changed

Lines changed: 56 additions & 56 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
This release focused on improving performance and reducing memory usage.
104104

105105
A Cython-based policy representation replaced the
106-
Python/SWIG/static-linked-libsepol implemention. SETools no longer statically
106+
Python/SWIG/static-linked-libsepol implementation. SETools no longer statically
107107
links to libsepol, though it is strongly suggested that users rebuild SETools
108108
after updating libsepol, in case the policy structure changes.
109109

man/sediff.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Find differences in mlsvalidatetrans rules.
8787
.IP "--ibendportcon"
8888
Find differences in ibendportcon (InfiniBand endport context) statements.
8989
.IP "--ibpkeycon"
90-
Find differences in ibpkeycon (InfiniBand parition key context) statements.
90+
Find differences in ibpkeycon (InfiniBand partition key context) statements.
9191
.IP "--initialsid"
9292
Find differences in initial SID statements.
9393
.IP "--fs_use"

man/seinfo.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ There is no expanded information for this component.
5757
Print a list of genfscon statements or, if FS_TYPE is provided, print the statement for the named filesystem type.
5858
There is no expanded information for this component.
5959
.IP "--ibpkeycon [PKEY[-PKEY]]"
60-
Print a list of InfiniBand parition key contexts.
60+
Print a list of InfiniBand partition key contexts.
6161
.IP "--ibendportcon [NAME]"
6262
Print a list of InfiniBand endport contexts.
6363
.IP "--initialsid [NAME]"

sediff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ try:
532532
nm = len(diff.modified_sensitivities)
533533
print(f"Sensitivities ({na} Added, {nr} Removed, {nm} Modified)")
534534
if diff.added_sensitivities and not args.stats:
535-
print(f" Added Sensitivites: {na}")
535+
print(f" Added Sensitivities: {na}")
536536
for sens in sorted(diff.added_sensitivities):
537537
print(f" + {sens}")
538538
if diff.removed_sensitivities and not args.stats:

setools/checker/checkermodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def log_info(self, msg: str) -> None:
9696
def log_ok(self, msg: str) -> None:
9797
"""
9898
Log findings that pass the check. By default these messages are
99-
surpressed unless self.log_passing is True.
99+
suppressed unless self.log_passing is True.
100100
"""
101101
if self.log_passing:
102102
self.output.write(f"P * {msg}\n")

setools/dta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def __init__(self, policy: policyrep.SELinuxPolicy, /, *,
164164
self.subG = self.G.copy()
165165
except NameError:
166166
self.log.critical("NetworkX is not available. This is "
167-
"requried for Domain Transition Analysis.")
167+
"required for Domain Transition Analysis.")
168168
self.log.critical("This is typically in the python3-networkx package.")
169169
raise
170170

@@ -690,7 +690,7 @@ class Edge(mixins.NetworkXGraphEdge):
690690
Parameters:
691691
graph The NetworkX graph.
692692
source The source type of the edge.
693-
target The target tyep of the edge.
693+
target The target type of the edge.
694694
695695
Keyword Parameters:
696696
create (T/F) create the edge if it does not exist.

setools/infoflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(self, policy: policyrep.SELinuxPolicy, perm_map: permmap.Permission
9191
self.subG = self.G.copy()
9292
except NameError:
9393
self.log.critical("NetworkX is not available. This is "
94-
"requried for Information Flow Analysis.")
94+
"required for Information Flow Analysis.")
9595
self.log.critical("This is typically in the python3-networkx package.")
9696
raise
9797

setools/policyrep/object.pxi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ cdef class EbitmapIterator(PolicyIterator):
120120
"""
121121
Base class for iterators over hash tables.
122122
123-
Sublcasses must provide their own __next__, which calls this class's __next__
123+
Subclasses must provide their own __next__, which calls this class's __next__
124124
and then uses a factory function to build and return an object from self.curr.
125125
126126
For example:
@@ -177,7 +177,7 @@ cdef class HashtabIterator(PolicyIterator):
177177
"""
178178
Base class for iterators over hash tables.
179179
180-
Sublcasses must provide their own __next__, which calls this class's __next__
180+
Subclasses must provide their own __next__, which calls this class's __next__
181181
and then uses a factory function to build and return an object from self.curr.
182182
183183
For example:
@@ -243,7 +243,7 @@ cdef class OcontextIterator(PolicyIterator):
243243
"""
244244
Base class for iterators for most in-policy labeling statements, (portcon, nodecon, etc.)
245245
246-
Sublcasses must provide their own __next__, which calls this class's __next__
246+
Subclasses must provide their own __next__, which calls this class's __next__
247247
and then uses a factory function to build and return an object from self.ocon.
248248
249249
For example:

setools/policyrep/terule.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ cdef class IoctlSet(frozenset):
222222

223223
def __format__(self, spec):
224224
"""
225-
String formating.
225+
String formatting.
226226
227227
The standard formatting (no specification) will render the
228228
ranges of ioctls, space separated.

setools/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, policy: "SELinuxPolicy", **kwargs) -> None:
2323
# keys are sorted in reverse order so regex settings
2424
# are set before the criteria, e.g. name_regex
2525
# is set before name. This ensures correct behavior
26-
# since the criteria descriptors are sensitve to
26+
# since the criteria descriptors are sensitive to
2727
# regex settings.
2828
for name in sorted(kwargs.keys(), reverse=True):
2929
attr = getattr(self, name, None) # None is not callable

0 commit comments

Comments
 (0)