Skip to content

service: add workdir support for daemon instances - #51

Open
1715173329 wants to merge 1 commit into
openwrt:mainfrom
1715173329:workdir
Open

1715173329 wants to merge 1 commit into
openwrt:mainfrom
1715173329:workdir

Conversation

@1715173329

Copy link
Copy Markdown
Member

Allow instances to select a working directory with the workdir option.
Change directory after setting the process identity and fail startup
if the directory cannot be entered. Preserve the existing behavior
when workdir is omitted.

Pass the directory to ujail through a new -W option, reusing its
existing directory switch after jail setup. Track workdir changes,
include the value in instance dumps, and release owned strings.

Allow instances to select a working directory with the workdir option.
Change directory after setting the process identity and fail startup
if the directory cannot be entered. Preserve the existing behavior
when workdir is omitted.

Pass the directory to ujail through a new -W option, reusing its
existing directory switch after jail setup. Track workdir changes,
include the value in instance dumps, and release owned strings.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant