summaryrefslogtreecommitdiff
path: root/linuxnamespaces
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-02-25 13:52:44 +0100
committerHelmut Grohne <helmut@subdivi.de>2024-02-25 13:52:44 +0100
commit3f899b25955b76dc87631188c8ff6550742e530b (patch)
tree7ef734978df3516e9995efe717add33a6b7d2916 /linuxnamespaces
parent8b98dc846e7bd911360820f085a1b21307b28e89 (diff)
downloadpython-linuxnamespaces-3f899b25955b76dc87631188c8ff6550742e530b.tar.gz
spell check
Diffstat (limited to 'linuxnamespaces')
-rw-r--r--linuxnamespaces/__init__.py10
-rw-r--r--linuxnamespaces/atlocation.py4
-rw-r--r--linuxnamespaces/syscalls.py2
3 files changed, 8 insertions, 8 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"
diff --git a/linuxnamespaces/atlocation.py b/linuxnamespaces/atlocation.py
index 5871db8..45d2d59 100644
--- a/linuxnamespaces/atlocation.py
+++ b/linuxnamespaces/atlocation.py
@@ -257,7 +257,7 @@ class AtLocation:
)
def rmdir(self) -> None:
- """Wrapper for os.rmdir suppling path and dir_fd."""
+ """Wrapper for os.rmdir supplying path and dir_fd."""
if self.flags != AtFlags.NONE:
raise NotImplementedError(
"rmdir is not supported for an AtLocation with flags"
@@ -278,7 +278,7 @@ class AtLocation:
os.symlink(linktarget, self.location, dir_fd=self.fd_or_none)
def unlink(self) -> None:
- """Wrapper for os.unlink suppling path and dir_fd."""
+ """Wrapper for os.unlink supplying path and dir_fd."""
if self.flags != AtFlags.NONE:
raise NotImplementedError(
"unlink is not supported for an AtLocation with flags"
diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py
index 06b5025..c98d776 100644
--- a/linuxnamespaces/syscalls.py
+++ b/linuxnamespaces/syscalls.py
@@ -404,7 +404,7 @@ class CapabilitySets:
class EventFD:
- """Represent a file decriptor returned from eventfd(2)."""
+ """Represent a file descriptor returned from eventfd(2)."""
def __init__(
self, initval: int = 0, flags: EventFDFlags = EventFDFlags.NONE