[GH-ISSUE #2730] Provide template for profile creation #1719

Closed
opened 2026-05-05 08:23:00 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @jose1711 on GitHub (May 30, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2730

Originally assigned to: @rusty-snake on GitHub.

It would be great if a template exists one could use for new profile creation - something that has basically everything disabled and provides an easy starting point with comments to tune it.

Originally created by @jose1711 on GitHub (May 30, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2730 Originally assigned to: @rusty-snake on GitHub. It would be great if a template exists one could use for new profile creation - something that has basically everything disabled and provides an easy starting point with comments to tune it.
gitea-mirror 2026-05-05 08:23:00 -06:00
Author
Owner

@rusty-snake commented on GitHub (May 30, 2019):

@jose1711 https://gist.github.com/rusty-snake/018ae7c672f15bb45f10eb7626d2da19
I will update it in the next hours to my lastest one.

EDIT: Updated

<!-- gh-comment-id:497266153 --> @rusty-snake commented on GitHub (May 30, 2019): @jose1711 https://gist.github.com/rusty-snake/018ae7c672f15bb45f10eb7626d2da19 ~I will update it in the next hours to my lastest one.~ EDIT: Updated
Author
Owner

@jose1711 commented on GitHub (May 30, 2019):

thank you. could it become part of the repository? maybe contrib/?

<!-- gh-comment-id:497267772 --> @jose1711 commented on GitHub (May 30, 2019): thank you. could it become part of the repository? maybe `contrib/`?
Author
Owner

@netblue30 commented on GitHub (May 30, 2019):

@rusty-snake

Make a etc/templates directory on main, and put them there. I am thinking of including them in the source archives and installing them in /usr/share/doc/firejail directory.

<!-- gh-comment-id:497311051 --> @netblue30 commented on GitHub (May 30, 2019): @rusty-snake Make a etc/templates directory on main, and put them there. I am thinking of including them in the source archives and installing them in /usr/share/doc/firejail directory.
Author
Owner

@rusty-snake commented on GitHub (May 30, 2019):

@netblue30 What do you mean with "main"?

<!-- gh-comment-id:497321550 --> @rusty-snake commented on GitHub (May 30, 2019): @netblue30 What do you mean with "main"?
Author
Owner

@jose1711 commented on GitHub (May 30, 2019):

My understanding is that main == master branch

<!-- gh-comment-id:497322426 --> @jose1711 commented on GitHub (May 30, 2019): My understanding is that main == master branch
Author
Owner

@netblue30 commented on GitHub (May 30, 2019):

Yes, here on github on the official master branch source code.

<!-- gh-comment-id:497363305 --> @netblue30 commented on GitHub (May 30, 2019): Yes, here on github on the official master branch source code.
Author
Owner

@rusty-snake commented on GitHub (May 30, 2019):

cb98aea

<!-- gh-comment-id:497373374 --> @rusty-snake commented on GitHub (May 30, 2019): cb98aea
Author
Owner

@rusty-snake commented on GitHub (Jun 2, 2019):

What about adding this to the manpage?

diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt
index 8c998997..f9726145 100644
--- a/src/man/firejail-profile.txt
+++ b/src/man/firejail-profile.txt
@@ -74,6 +74,9 @@ Child process initialized
 [...]
 .RE
 
+.SH Templates
+Templates for writing own profiles can be found in /usr/share/doc/firejail.
+
 .SH Scripting
 Scripting commands:

<!-- gh-comment-id:498008753 --> @rusty-snake commented on GitHub (Jun 2, 2019): What about adding this to the manpage? ```diff diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt index 8c998997..f9726145 100644 --- a/src/man/firejail-profile.txt +++ b/src/man/firejail-profile.txt @@ -74,6 +74,9 @@ Child process initialized [...] .RE +.SH Templates +Templates for writing own profiles can be found in /usr/share/doc/firejail. + .SH Scripting Scripting commands: ```
Author
Owner

@TheDarkTrumpet commented on GitHub (Jun 4, 2019):

I think it'd also benefit to put this in the CONTRIB, at least as a link. I think most people look at the contrib over the man pages when encountering programs. That's how I came about adding to the project.

<!-- gh-comment-id:498479348 --> @TheDarkTrumpet commented on GitHub (Jun 4, 2019): I think it'd also benefit to put this in the CONTRIB, at least as a link. I think most people look at the contrib over the man pages when encountering programs. That's how I came about adding to the project.
Author
Owner

@netblue30 commented on GitHub (Jun 8, 2019):

All of them are installed in /usr/share/doc/firejail. It looks something like this:

 ls -l /usr/share/doc/firejail
total 104
-rw-r--r-- 1 root root 15146 Jun  8 14:15 COPYING
-rw-r--r-- 1 root root  4320 Jun  8 14:15 profile.template
-rw-r--r-- 1 root root 30021 Jun  8 14:15 README
-rw-r--r-- 1 root root   967 Jun  8 14:15 redirect_alias-profile.template
-rw-r--r-- 1 root root 40774 Jun  8 14:15 RELNOTES
-rw-r--r-- 1 root root  1859 Jun  8 14:15 syscalls.txt
<!-- gh-comment-id:500147855 --> @netblue30 commented on GitHub (Jun 8, 2019): All of them are installed in /usr/share/doc/firejail. It looks something like this: ````` ls -l /usr/share/doc/firejail total 104 -rw-r--r-- 1 root root 15146 Jun 8 14:15 COPYING -rw-r--r-- 1 root root 4320 Jun 8 14:15 profile.template -rw-r--r-- 1 root root 30021 Jun 8 14:15 README -rw-r--r-- 1 root root 967 Jun 8 14:15 redirect_alias-profile.template -rw-r--r-- 1 root root 40774 Jun 8 14:15 RELNOTES -rw-r--r-- 1 root root 1859 Jun 8 14:15 syscalls.txt `````
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#1719
No description provided.