Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount linprocfs #637

Open
gronke opened this issue Feb 3, 2019 · 3 comments
Open

Mount linprocfs #637

gronke opened this issue Feb 3, 2019 · 3 comments

Comments

@gronke
Copy link
Member

gronke commented Feb 3, 2019

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")

@igalic
Copy link
Collaborator

igalic commented Feb 3, 2019

what programmes is this for for?

@gronke
Copy link
Member Author

gronke commented Feb 3, 2019

Had no use-case for it so far. May somebody speak up why this should be enabled and I will gladly do it :)

@himrock922
Copy link

himrock922 commented Feb 5, 2019

Hi,
I don't know the use-case that this property must allow.
Anyways, In the first place, If linux file system want use on container, I think that I should use not jail, but linux containers such as Docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants