-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Currently there is an unused function 💥prepared for mounting linprocfs.
libioc/libioc/Storage/__init__.py
Lines 190 to 210 in ac61b44
# 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") |