From 3f899b25955b76dc87631188c8ff6550742e530b Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 25 Feb 2024 13:52:44 +0100 Subject: spell check --- linuxnamespaces/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'linuxnamespaces/__init__.py') 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" -- cgit v1.2.3