Merge pull request #272 from cgzones/spelling

Correct some misspellings
This commit is contained in:
Chris PeBenito 2020-06-10 14:49:06 -04:00 committed by GitHub
commit f4b10de892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 13 deletions

View File

@ -39,7 +39,7 @@ UNK_PERMS = deny
# Direct admin init
# Setting this will allow sysadm to directly
# run init scripts, instead of requring run_init.
# run init scripts, instead of requiring run_init.
# This is a build option, as role transitions do
# not work in conditional policy.
DIRECT_INITRC = n

View File

@ -1,7 +1,7 @@
#
# This file contains the policy capabilites
# This file contains the policy capabilities
# that are enabled in this policy, not a
# declaration of DAC capabilites such as
# declaration of DAC capabilities such as
# dac_override.
#
# The affected object classes and their

View File

@ -20,7 +20,7 @@ import re
class FileContext():
""" Container class for file context defintions
""" Container class for file context definitions
"""
def __init__(self, context_line):
@ -36,7 +36,7 @@ class FileContext():
self.compute_diffdata()
def compute_diffdata(self):
""" Compute the interal values needed for comparing two file context definitions
""" Compute the internal values needed for comparing two file context definitions
"""
self.meta = False

View File

@ -36,7 +36,7 @@ def get_perms(name, av_db, common):
Returns the list of permissions contained within an access vector
class that is stored in the access vector database av_db.
Returns an empty list if the object name is not found.
Specifiy whether get_perms is to return the class or the
Specify whether get_perms is to return the class or the
common set of permissions with the boolean value 'common',
which is important in the case of having duplicate names (such as
class file and common file).
@ -59,7 +59,7 @@ def get_av_db(file_name):
# Reading into av_data:
# The file specified will be read line by line. Each line will have
# its comments removed. Once comments are removed, each 'word' (text
# seperated by whitespace) and braces will be split up into seperate
# separated by whitespace) and braces will be split up into separate
# strings and appended to the av_data list, in the order they were
# read.
# Parsing av_data:

View File

@ -71,7 +71,7 @@ def getStartingUID():
#############################################################################
#
# This section is just for backwards compatability
# This section is just for backwards compatibility
#
#############################################################################
def getPrefixes():
@ -158,7 +158,7 @@ def oldgenhomedircon(filecontextdir, filecontext):
#any default home directory defined by either /etc/libuser.conf or /etc/default/useradd
#we then get the potential home directory roots from /etc/passwd or nis or wherever and look at
#the defined homedir for all users with UID > STARTING_UID. This list of possible root homedirs
#is then checked to see if it has an explicite context defined in the file_contexts. Explicit
#is then checked to see if it has an explicit context defined in the file_contexts. Explicit
#is any regex that would match it which does not end with .*$ or .+$ since those are general
#recursive matches. We then take any regex which ends with [pattern](/.*)?$ and just check against
#[pattern]
@ -221,7 +221,7 @@ def oldgenhomedircon(filecontextdir, filecontext):
#############################################################################
#
# End of backwards compatability section
# End of backwards compatibility section
#
#############################################################################

View File

@ -119,7 +119,7 @@ def gen_module_conf(doc, file_name, namevalue_list):
file_name.write("# included in the base module. \"%s\" will be compiled\n" % MOD_ENABLED)
file_name.write("# as individual loadable modules.\n#\n\n")
# For required in [True,False] is present so that the requiered modules
# For required in [True,False] is present so that the required modules
# are at the top of the config file.
for required in [True,False]:
for node in doc.getElementsByTagName("module"):

View File

@ -131,7 +131,7 @@ def getModuleXML(file_name):
if line.isspace():
continue
# Grab a comment and add it to the temprorary buffer, if it
# Grab a comment and add it to the temporary buffer, if it
# is there.
comment = XML_COMMENT.match(line)
if comment:
@ -283,7 +283,7 @@ def getTunableXML(file_name, kind):
temp_buf = []
tunable_buf.append("</%s>\n" % boolean.group(1))
# If there are XML comments at the end of the file, they arn't
# If there are XML comments at the end of the file, they aren't
# attributed to anything. These are ignored.
if len(temp_buf):
warning("orphan XML comments at bottom of file %s" % file_name)