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 fdescfs on jail start when mount_fdescfs is set #727

Merged
merged 21 commits into from
May 10, 2019
Merged

Conversation

gronke
Copy link
Member

@gronke gronke commented May 8, 2019

Security

  • mount /dev and /dev/fd from within the jail
  • apply security checks before unmounting system mountpoints from a jail

Bugs

  • fix mounting /dev when mount_devfs is enabled
  • fix mounting /dev/fd when mount_fdescfs is enabled
  • include sysvshm, sysvsem and sysvmsg jail params on start

mount_descfs is a /usr/sbin/jail argument, not a Jail parameter. Therefore it is not handled by py-jail and must be manually handled during jail start.

Copy link
Collaborator

@igalic igalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

libioc/Config/Jail/BaseConfig.py Outdated Show resolved Hide resolved
libioc/Jail.py Show resolved Hide resolved
@gronke gronke added the security label May 9, 2019
Copy link
Collaborator

@igalic igalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i, tentatively approve

requirements.txt Show resolved Hide resolved
libioc/Config/Jail/Globals.py Outdated Show resolved Hide resolved
@gronke gronke force-pushed the fix/mount-fdescfs branch 4 times, most recently from 5b2020a to e2a6bb8 Compare May 9, 2019 16:28
@gronke gronke merged commit 8cf772d into master May 10, 2019
@gronke gronke deleted the fix/mount-fdescfs branch May 10, 2019 13:51
@igalic igalic mentioned this pull request May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants