Skip to content

Add chroot() support #38

@sisungo

Description

@sisungo

Introduction

Many services use chroot() to improve security. Supporting specifying root directory in Airup service manifest could make the system more secure.

Unresolved Questions

  • Rust standard library haven't supported chroot-ing for child processes yet. However, when using pre_exec to reach the goal, setuid() is earlier called, causing user switching to be conflicted with chroot-ing (that's also why we commented setgroup()). Should we switch to use pre_exec for setuid(), too, in order to keep the order?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions