summaryrefslogtreecommitdiff
path: root/linuxnamespaces/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'linuxnamespaces/__init__.py')
-rw-r--r--linuxnamespaces/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py
index 63b0d21..ce6d44f 100644
--- a/linuxnamespaces/__init__.py
+++ b/linuxnamespaces/__init__.py
@@ -35,7 +35,7 @@ def subidranges(
@dataclasses.dataclass(frozen=True)
class IDMapping:
- """Represent one range in a user or goup id mapping."""
+ """Represent one range in a user or group id mapping."""
innerstart: int
outerstart: int
@@ -56,7 +56,7 @@ class IDMapping:
class IDAllocation:
"""This represents a subset of IDs (user or group). It can be used to
- allocate a continguous range for use with a user namespace.
+ allocate a contiguous range for use with a user namespace.
"""
def __init__(self) -> None:
@@ -104,7 +104,7 @@ class IDAllocation:
return self
def find(self, count: int) -> int:
- """Locate count continguous ids from this allocation. The start of
+ """Locate count contiguous ids from this allocation. The start of
the allocation is returned. The allocation object is left unchanged.
"""
for start, available in self.ranges:
@@ -190,7 +190,7 @@ def newidmaps(
gidmapping: list[IDMapping],
helper: bool = True,
) -> None:
- """Appply a given uid and gid mapping to the given process. Refer to
+ """Apply a given uid and gid mapping to the given process. Refer to
newidmap for details.
"""
newgidmap(pid, gidmapping, helper)
@@ -373,7 +373,7 @@ def populate_sys(
rootcgroup: PathConvertible | None = None,
module: bool = True,
) -> None:
- """Create a /sys hierarchy below newroot. Bind the cgroup hiearchy. The
+ """Create a /sys hierarchy below newroot. Bind the cgroup hierarchy. The
cgroup hierarchy will be mounted read-only if mounting the root group.
"""
newsys = AtLocation(newroot) / "sys"