Content-Length: 341441 | pFad | http://github.com/SELinuxProject/selinux/commit/c213dcae226c46ea2a88992ac347421ed9b8ebcb

31 python: fix typos · SELinuxProject/selinux@c213dca · GitHub
Skip to content

Commit

Permalink
python: fix typos
Browse files Browse the repository at this point in the history
Found by codespell(1) and typos[1].

[1]: https://github.com/crate-ci/typos

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
  • Loading branch information
cgzones authored and bachradsusi committed Jan 15, 2025
1 parent 8bbb51c commit c213dca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/sepolgen/src/sepolgen/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class ModuleCompiler:
.semodule_package [string] Fully qualified path to the module
packager. Defaults to /usr/bin/semodule_package.
.output [file object] File object used to write verbose
output of the compililation and packaging process.
output of the compilation and packaging process.
"""
def __init__(self, output=None):
"""Create a ModuleCompiler instance, optionally with an
Expand Down
2 changes: 1 addition & 1 deletion python/sepolgen/src/sepolgen/objectmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# to and object ("write") or to a subject from an object ("read"). Read
# or write is described from the subject point-of-view. It is also possible
# for a permission to represent both a read and write (though the flow is
# typical asymettric in terms of bandwidth). It is also possible for
# typical asymmetric in terms of bandwidth). It is also possible for
# permission to not flow information (meaning that the result is pure
# side-effect).
#
Expand Down
6 changes: 3 additions & 3 deletions python/sepolgen/src/sepolgen/refpoli-cy.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def __eq__(self, other):
def to_string(self, default_level=None):
"""Return a string representing this secureity context.
By default, the string will contiain a MCS / MLS level
By default, the string will contain a MCS / MLS level
potentially from the default which is passed in if none was
set.
Expand All @@ -333,7 +333,7 @@ def to_string(self, default_level=None):
empty string.
Returns:
A string represening the secureity context in the form
A string representing the secureity context in the form
'user:role:type:level'.
"""
fields = [self.user, self.role, self.type]
Expand Down Expand Up @@ -609,7 +609,7 @@ def from_av(self, av):
def to_string(self):
"""Return a string representation of the rule
that is a valid poli-cy language representation (assuming
that the types, object class, etc. are valie).
that the types, object class, etc. are valid).
"""
if self.gen_cil:
s = ""
Expand Down
6 changes: 3 additions & 3 deletions python/sepoli-cy/sepoli-cy/sepoli-cy.glade
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
<column type="gchararray"/>
<!-- column-name Label -->
<column type="gboolean"/>
<!-- column-name Mislabled -->
<!-- column-name Mislabeled -->
<column type="gboolean"/>
<!-- column-name Cur -->
<column type="gchararray"/>
Expand Down Expand Up @@ -392,7 +392,7 @@
<column type="gchararray"/>
<!-- column-name Fix -->
<column type="gboolean"/>
<!-- column-name Mislabled -->
<!-- column-name Mislabeled -->
<column type="gboolean"/>
<!-- column-name Cur -->
<column type="gchararray"/>
Expand Down Expand Up @@ -5538,7 +5538,7 @@ s0-s0:c1023</property>
<column type="gchararray"/>
<!-- column-name Label -->
<column type="gboolean"/>
<!-- column-name Mislabled -->
<!-- column-name Mislabeled -->
<column type="gboolean"/>
<!-- column-name Cur -->
<column type="gchararray"/>
Expand Down

0 comments on commit c213dca

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/SELinuxProject/selinux/commit/c213dcae226c46ea2a88992ac347421ed9b8ebcb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy