aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-02-22 17:22:50 +0100
committerKenton Groombridge <concord@gentoo.org>2024-03-01 12:05:34 -0500
commit85d57ceba1e3c39f6fac27a32b39fb6539166552 (patch)
tree73c1b062a48a10c1438ab1dfc1cf7b2d27940b2c
parentsupport/genhomedircon: support usr prefixed paths (diff)
downloadhardened-refpolicy-85d57ceba1e3c39f6fac27a32b39fb6539166552.tar.gz
hardened-refpolicy-85d57ceba1e3c39f6fac27a32b39fb6539166552.tar.bz2
hardened-refpolicy-85d57ceba1e3c39f6fac27a32b39fb6539166552.zip
fix misc typos
Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Kenton Groombridge <concord@gentoo.org>
-rw-r--r--policy/support/loadable_module.spt2
-rw-r--r--policy/support/mls_mcs_macros.spt2
-rw-r--r--support/genhomedircon.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/policy/support/loadable_module.spt b/policy/support/loadable_module.spt
index 606ee80d0..1f6163054 100644
--- a/policy/support/loadable_module.spt
+++ b/policy/support/loadable_module.spt
@@ -47,7 +47,7 @@ define(`gen_require',`
')
')
-# helper function, since m4 wont expand macros
+# helper function, since m4 will not expand macros
# if a line is a comment (#):
define(`policy_m4_comment',`
##### $2 depth: $1
diff --git a/policy/support/mls_mcs_macros.spt b/policy/support/mls_mcs_macros.spt
index 7593e20d0..7d1293301 100644
--- a/policy/support/mls_mcs_macros.spt
+++ b/policy/support/mls_mcs_macros.spt
@@ -15,7 +15,7 @@ define(`gen_cats',`decl_cats(0,decr($1))')
#
# gen_sens(N)
#
-# declares sensitivites s0 to s(N-1) with dominance
+# declares sensitivities s0 to s(N-1) with dominance
# in increasing numeric order with s0 lowest, s(N-1) highest
#
define(`decl_sens',`dnl
diff --git a/support/genhomedircon.py b/support/genhomedircon.py
index d5177ee4a..b865a07c8 100644
--- a/support/genhomedircon.py
+++ b/support/genhomedircon.py
@@ -51,7 +51,7 @@ def getStartingUID():
rc=getstatusoutput("grep -h '^UID_MIN' /etc/login.defs")
if rc[0] == 0:
uid_min = re.sub("^UID_MIN[^0-9]*", "", rc[1])
- #stip any comment from the end of the line
+ #strip any comment from the end of the line
uid_min = uid_min.split("#")[0]
uid_min = uid_min.strip()
if int(uid_min) < starting_uid:
@@ -59,7 +59,7 @@ def getStartingUID():
rc=getstatusoutput("grep -h '^LU_UIDNUMBER' /etc/libuser.conf")
if rc[0] == 0:
lu_uidnumber = re.sub("^LU_UIDNUMBER[^0-9]*", "", rc[1])
- #stip any comment from the end of the line
+ #strip any comment from the end of the line
lu_uidnumber = re.sub("[ \t].*", "", lu_uidnumber)
lu_uidnumber = lu_uidnumber.split("#")[0]
lu_uidnumber = lu_uidnumber.strip()