mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5773] freeoffice-textmaker: cannot create unique identifier #3088
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3088
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hotcapy on GitHub (Mar 31, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5773
Description
Free version of office suite by SoftMaker uses numeric license keys sent by e-mail for app activation.
When launched with Firejail, app's GUI shows the following error:
After pressing "Retry" button FreeOffice shows it's usual dialogue requiring to enter free license key.
App activated already and works w/o Firejail.
There is nothing special in terminal output.
Steps to Reproduce
$ firejail /usr/bin/freeoffice-textmaker.Expected behavior
FreeOffice successfully gets access to it's product key and opens a new document window.
Actual behavior
FreeOffice requires to register with free license key while actually were registered already.
Behavior without a profile
Works as expected with
--noprofileoption.Additional context
Perhaps, FreeOffice stores it's activation information somewhere but can't access it with Firejail.
Unfortunately, I don't know where exactly and wasn't able to find it out.
Environment
Checklist
Log
Output of
LC_ALL=C firejail /usr/bin/freeoffice-textmakerOutput of
LC_ALL=C firejail --debug /usr/bin/freeoffice-textmaker@kmk3 commented on GitHub (Apr 1, 2023):
That error message is very uninformative unfortunately, so I'd try one or more
of the generic debugging steps:
--traceto see what files it tries to accessproblems
@hotcapy commented on GitHub (Apr 2, 2023):
Creating file
softmaker-common.localwith lineignore private-etc @tls-ca,SoftMakerfixes this issue.--traceoutput:private-etcenabled: firejail-smfo_trace_badprivate-etcdisabled: firejail-smfo_trace_goodI couldn't figure out which files or folders FreeOffice uses in
/etc, and my knowledge is not enough to analyze these logs myself.@kmk3 commented on GitHub (Apr 2, 2023):
@hotcapy on Apr 2:
I think I found it:
Does it work when adding
os-releasetoprivate-etc?@hotcapy commented on GitHub (Apr 2, 2023):
Unfortunately, it doesn't.
Here is
--traceoutput withprivate-etc @tls-ca,SoftMaker,os-release: firejail-smfo_trace_os-releaseIf it matters,
/etc/os-releaseis a symlink to/usr/lib/os-releasein my system.@kmk3 commented on GitHub (Apr 2, 2023):
@hotcapy on Apr 2:
There are some differences in the logs, but it's not obvious why:
So unless someone knows a better way to debug this, I suppose we'll just
comment
private-etcin the profile for the time being.@rusty-snake commented on GitHub (Apr 2, 2023):
Since it works w/o private-etc:
Create a
private-etcline with everything:Remove privileged stuff like
sudoersthat let it fail.Make sure it works.
Remove stuff to find the needed one.
@hotcapy commented on GitHub (Apr 2, 2023):
Found it! For whatever reason, it is
/etc/fstab:-)private-etc @tls-ca,SoftMaker,fstab(or justfstab) works with all FreeOffice apps (TextMaker, PlanMaker, Presentations).@kmk3 commented on GitHub (Apr 3, 2023):
(Offtopic)
@rusty-snake on Apr 2:
To ignore shell aliases and functions for a single invocation,
commandcan beused:
This also works (though it's a bit less obvious and I don't know how portable
it is):
Both leave existing aliases intact in the current shell.
@kmk3 commented on GitHub (Apr 3, 2023):
@hotcapy on Apr 3:
Nice, could you open a PR to fix it?
@hotcapy commented on GitHub (Apr 3, 2023):
I can only hope that I did it right. It was my first pull request ever :)
Before this day I used GitHub just as source of various software to download, be it Linux stuff, tools for games or flashable .zips for Android. And as place to read wiki's for all of those.
@kmk3 commented on GitHub (Apr 5, 2023):
@hotcapy on Apr 3:
I have a few suggestions, but overall it looks good.
Glad to see more people contributing!
There are over 1000 profiles, so we depend on the community to keep them up to
date, especially for programs that are relatively less common.
@hotcapy commented on GitHub (Apr 5, 2023):
Thank you for providing detailed instructions, without them I couldn't done it.
All this is new to me, so reading the article you shared was very interesting and helpful!
@kmk3 commented on GitHub (Apr 6, 2023):
@hotcapy on Apr 5:
Happy to hear that!