Skip to content

Mount linprocfs #637

@gronke

Description

@gronke

Currently there is an unused function 💥prepared for mounting linprocfs.

# ToDo: Remove unused function?
def _mount_linprocfs(self) -> None:
try:
if not self.jail.config["mount_linprocfs"]:
return
except KeyError:
pass
linproc_path = self._jail_mkdirp("/compat/linux/proc")
try:
if self.jail.config["mount_procfs"] is True:
libioc.helpers.exec([
"mount"
"-t",
"linprocfs",
"linproc",
linproc_path
])
except KeyError:
raise libioc.errors.MountFailed("linprocfs")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions