[GH-ISSUE #604] touch/mkfile profile option (like mkdir) #423

Closed
opened 2026-05-05 05:49:48 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @rahiel on GitHub (Jun 27, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/604

In reference to issue #188, I saw the handy "mkdir" profile command that creates directories if they don't exist. Would it be helpful to have an equivalent for files, like touch? Then firejail can create the files, whitelist them and then the sandboxed program can write to it.

Originally created by @rahiel on GitHub (Jun 27, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/604 In reference to issue #188, I saw the handy "mkdir" profile command that creates directories if they don't exist. Would it be helpful to have an equivalent for files, like `touch`? Then firejail can create the files, whitelist them and then the sandboxed program can write to it.
gitea-mirror 2026-05-05 05:49:48 -06:00
Author
Owner

@netblue30 commented on GitHub (Jun 27, 2016):

This is a very good idea, I'll put it in, thanks!

<!-- gh-comment-id:228832059 --> @netblue30 commented on GitHub (Jun 27, 2016): This is a very good idea, I'll put it in, thanks!
Author
Owner

@rahiel commented on GitHub (Jul 9, 2016):

This was added in 0838606e62, thanks.

<!-- gh-comment-id:231538241 --> @rahiel commented on GitHub (Jul 9, 2016): This was added in https://github.com/netblue30/firejail/commit/0838606e623fc11fac5fd8db8b197d63f3e21f32, thanks.
Author
Owner

@netblue30 commented on GitHub (Jul 9, 2016):

Yes, I put it in yesterday. I am still doing some tests on it, but it should be fine.

<!-- gh-comment-id:231542876 --> @netblue30 commented on GitHub (Jul 9, 2016): Yes, I put it in yesterday. I am still doing some tests on it, but it should be fine.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#423
No description provided.