diff options
author | netblue30 <netblue30@protonmail.com> | 2021-05-20 08:21:45 -0400 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2021-05-20 08:21:45 -0400 |
commit | eb30ce54e7a8a75db773a1bbe762a3abdf2ccc42 (patch) | |
tree | ad897bbb49cef1e4cfade7e97669c9149e78ceaa /src | |
parent | jailtest -> jailcheck (#4268) (diff) | |
download | firejail-eb30ce54e7a8a75db773a1bbe762a3abdf2ccc42.tar.gz firejail-eb30ce54e7a8a75db773a1bbe762a3abdf2ccc42.tar.zst firejail-eb30ce54e7a8a75db773a1bbe762a3abdf2ccc42.zip |
new profiles
Diffstat (limited to 'src')
-rw-r--r-- | src/fbuilder/main.c | 10 | ||||
-rw-r--r-- | src/firecfg/firecfg.config | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/fbuilder/main.c b/src/fbuilder/main.c index 35ec49519..6c9fc507c 100644 --- a/src/fbuilder/main.c +++ b/src/fbuilder/main.c | |||
@@ -39,7 +39,7 @@ printf("\n"); | |||
39 | int i; | 39 | int i; |
40 | int prog_index = 0; | 40 | int prog_index = 0; |
41 | FILE *fp = stdout; | 41 | FILE *fp = stdout; |
42 | int prof_file = 0; | 42 | char *prof_file = NULL; |
43 | 43 | ||
44 | // parse arguments and extract program index | 44 | // parse arguments and extract program index |
45 | for (i = 1; i < argc; i++) { | 45 | for (i = 1; i < argc; i++) { |
@@ -70,8 +70,7 @@ printf("\n"); | |||
70 | fprintf(stderr, "Error: cannot open profile file.\n"); | 70 | fprintf(stderr, "Error: cannot open profile file.\n"); |
71 | exit(1); | 71 | exit(1); |
72 | } | 72 | } |
73 | prof_file = 1; | 73 | prof_file = argv[i] + 8; |
74 | // do nothing, this is passed down from firejail | ||
75 | } | 74 | } |
76 | else { | 75 | else { |
77 | if (*argv[i] == '-') { | 76 | if (*argv[i] == '-') { |
@@ -87,8 +86,11 @@ printf("\n"); | |||
87 | if (prog_index == 0) { | 86 | if (prog_index == 0) { |
88 | fprintf(stderr, "Error : program and arguments required\n"); | 87 | fprintf(stderr, "Error : program and arguments required\n"); |
89 | usage(); | 88 | usage(); |
90 | if (prof_file) | 89 | if (prof_file) { |
91 | fclose(fp); | 90 | fclose(fp); |
91 | int rv = unlink(prof_file); | ||
92 | (void) rv; | ||
93 | } | ||
92 | exit(1); | 94 | exit(1); |
93 | } | 95 | } |
94 | 96 | ||
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index 474904ebf..f408f0640 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config | |||
@@ -271,6 +271,7 @@ freetube | |||
271 | freshclam | 271 | freshclam |
272 | frogatto | 272 | frogatto |
273 | frozen-bubble | 273 | frozen-bubble |
274 | funnyboat | ||
274 | gajim | 275 | gajim |
275 | gajim-history-manager | 276 | gajim-history-manager |
276 | galculator | 277 | galculator |
@@ -443,6 +444,7 @@ kube | |||
443 | kwrite | 444 | kwrite |
444 | leafpad | 445 | leafpad |
445 | # less - breaks man | 446 | # less - breaks man |
447 | librecad | ||
446 | libreoffice | 448 | libreoffice |
447 | librewolf | 449 | librewolf |
448 | librewolf-nightly | 450 | librewolf-nightly |