[GH-ISSUE #760] Invalid line in profile #515

Closed
opened 2026-05-05 06:01:48 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @reinerh on GitHub (Sep 2, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/760

Somehow firejail thinks that firefox.profile contains an invalid line and exits.
This happens for example for firefox (and also for icedove; those are the only profiles where I noticed that).
(Note that it complains about a line number which doesn't exist.)

$ rm -rf .mozilla .config
$ wc -l /etc/firejail/firefox.profile
50 /etc/firejail/firefox.profile
$ firejail --debug firefox
Autoselecting /bin/bash as shell
Command name #firefox#
Found firefox profile in /etc/firejail directory
Reading profile /etc/firejail/firefox.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-devel.inc
Username test, groups 1000,
Reading profile /etc/firejail/whitelist-common.inc
Username test, groups 1000,
Error: line 51 in /etc/firejail/firefox.profile is invalid

Originally created by @reinerh on GitHub (Sep 2, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/760 Somehow firejail thinks that firefox.profile contains an invalid line and exits. This happens for example for firefox (and also for icedove; those are the only profiles where I noticed that). (Note that it complains about a line number which doesn't exist.) > $ rm -rf .mozilla .config > $ wc -l /etc/firejail/firefox.profile > 50 /etc/firejail/firefox.profile > $ firejail --debug firefox > Autoselecting /bin/bash as shell > Command name #firefox# > Found firefox profile in /etc/firejail directory > Reading profile /etc/firejail/firefox.profile > Reading profile /etc/firejail/disable-common.inc > Reading profile /etc/firejail/disable-programs.inc > Reading profile /etc/firejail/disable-devel.inc > Username test, groups 1000, > Reading profile /etc/firejail/whitelist-common.inc > Username test, groups 1000, > Error: line 51 in /etc/firejail/firefox.profile is invalid
gitea-mirror 2026-05-05 06:01:48 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Sep 3, 2016):

I'm not able to reproduce it.

<!-- gh-comment-id:244550058 --> @netblue30 commented on GitHub (Sep 3, 2016): I'm not able to reproduce it.
Author
Owner

@reinerh commented on GitHub (Sep 3, 2016):

Happens also with a newly created user.

> # adduser test
> ...
> # su - test
> $ firejail firefox
<!-- gh-comment-id:244550864 --> @reinerh commented on GitHub (Sep 3, 2016): Happens also with a newly created user. ``` > # adduser test > ... > # su - test > $ firejail firefox ```
Author
Owner

@Fred-Barclay commented on GitHub (Sep 3, 2016):

@reinerh I can't reproduce it either on LMDE 2. What distro are you using?

<!-- gh-comment-id:244557922 --> @Fred-Barclay commented on GitHub (Sep 3, 2016): @reinerh I can't reproduce it either on LMDE 2. What distro are you using?
Author
Owner

@reinerh commented on GitHub (Sep 4, 2016):

@Fred-Barclay Debian unstable.

<!-- gh-comment-id:244576459 --> @reinerh commented on GitHub (Sep 4, 2016): @Fred-Barclay Debian unstable.
Author
Owner

@reinerh commented on GitHub (Sep 4, 2016):

I just git-bisect'ed it, and the first commit where this issue occurs is 5a48bfcc40.

<!-- gh-comment-id:244597140 --> @reinerh commented on GitHub (Sep 4, 2016): I just git-bisect'ed it, and the first commit where this issue occurs is 5a48bfcc404e7a49f5d9ad0f44bacff44910a102.
Author
Owner

@netblue30 commented on GitHub (Oct 19, 2016):

Fixed: 24f53cde1d

There are some obscure differences between exit() and _exit(), described here: http://www.unixguide.net/unix/programming/1.1.3.shtml. I ended up fixing this problem all over the place. Thanks for the bug.

<!-- gh-comment-id:254900317 --> @netblue30 commented on GitHub (Oct 19, 2016): Fixed: https://github.com/netblue30/firejail/commit/24f53cde1d2ae75e23b3f82a925592c0c10c789a There are some obscure differences between exit() and _exit(), described here: http://www.unixguide.net/unix/programming/1.1.3.shtml. I ended up fixing this problem all over the place. Thanks for the bug.
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#515
No description provided.