[PR #42] [MERGED] Implement the expand_home util function #3523

Closed
opened 2026-05-05 10:03:01 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/42
Author: @ghost
Created: 8/22/2015
Status: Merged
Merged: 8/23/2015
Merged by: @netblue30

Base: masterHead: expand-home


📝 Commits (1)

  • d798c50 Implement the expand_home util function

📊 Changes

5 files changed (+68 additions, -33 deletions)

View changed files

📝 src/firejail/firejail.h (+1 -0)
📝 src/firejail/fs.c (+2 -11)
📝 src/firejail/fs_home.c (+37 -13)
📝 src/firejail/profile.c (+1 -9)
📝 src/firejail/util.c (+27 -0)

📄 Description

Implemented a new function called expand_home in util.c, in order to help with issue #40 . The following now work, that didn't before:

firejail --private-home=~/dir/file
firejail --private-home=${HOME}/dir/file

As a nice side-effect, the following now also works (previously --private only supported ~ for homedir):

firejail --private=${HOME}/dir

Hopefully I haven't broken anything else but please give it a test!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/42 **Author:** [@ghost](https://github.com/ghost) **Created:** 8/22/2015 **Status:** ✅ Merged **Merged:** 8/23/2015 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `expand-home` --- ### 📝 Commits (1) - [`d798c50`](https://github.com/netblue30/firejail/commit/d798c507fa7c2c212cd0fd6f2f5a46a30bb796c3) Implement the expand_home util function ### 📊 Changes **5 files changed** (+68 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/firejail.h` (+1 -0) 📝 `src/firejail/fs.c` (+2 -11) 📝 `src/firejail/fs_home.c` (+37 -13) 📝 `src/firejail/profile.c` (+1 -9) 📝 `src/firejail/util.c` (+27 -0) </details> ### 📄 Description Implemented a new function called `expand_home` in util.c, in order to help with issue #40 . The following now work, that didn't before: `firejail --private-home=~/dir/file` `firejail --private-home=${HOME}/dir/file` As a nice side-effect, the following now also works (previously `--private` only supported `~` for homedir): `firejail --private=${HOME}/dir` Hopefully I haven't broken anything else but please give it a test! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:03:01 -06:00
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#3523
No description provided.