diff --git a/build.conf b/build.conf index a2f1a9b5b..2ab0b2f22 100644 --- a/build.conf +++ b/build.conf @@ -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 diff --git a/policy/policy_capabilities b/policy/policy_capabilities index b877d0b06..9e309fbfc 100644 --- a/policy/policy_capabilities +++ b/policy/policy_capabilities @@ -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 diff --git a/support/fc_sort.py b/support/fc_sort.py index 3a35553bf..93b151b19 100644 --- a/support/fc_sort.py +++ b/support/fc_sort.py @@ -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 diff --git a/support/genclassperms.py b/support/genclassperms.py index a9c634c43..374a4edfd 100644 --- a/support/genclassperms.py +++ b/support/genclassperms.py @@ -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: diff --git a/support/genhomedircon.py b/support/genhomedircon.py index b2476562d..bb4e50617 100644 --- a/support/genhomedircon.py +++ b/support/genhomedircon.py @@ -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 # ############################################################################# diff --git a/support/sedoctool.py b/support/sedoctool.py index 3fddc39ac..f7a2fd047 100644 --- a/support/sedoctool.py +++ b/support/sedoctool.py @@ -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"): diff --git a/support/segenxml.py b/support/segenxml.py index 7a3231776..75c766bd3 100644 --- a/support/segenxml.py +++ b/support/segenxml.py @@ -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("\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)