mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4225] [MERGED] steam.profile: fix rogue legacy paths and syntax #5068
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#5068
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/4225
Author: @kmk3
Created: 4/30/2021
Status: ✅ Merged
Merged: 5/3/2021
Merged by: @kmk3
Base:
master← Head:fix-steam-rm-roguelegacy📝 Commits (1)
691fe4csteam.profile: fix rogue legacy paths and syntax📊 Changes
2 files changed (+18 additions, -4 deletions)
View changed files
📝
etc/inc/disable-programs.inc(+3 -1)📝
etc/profile-m-z/steam.profile(+15 -3)📄 Description
Due to using globbing on mkdir, the current version causes this:
@davidebeatrici commented on 2021-04-23[1]:
Added on commit
a603d4d("steam: some more games added") / PR #4170.The wildcard was used because Rogue Legacy apparently looks up multiple
different paths for the config and also for the data[1][2][3]:
The ones containing "RogueLegacyStorageContainer" appear to be legacy
paths (i.e.: paths which are only created by older versions of Rogue
Legacy)[2].
So replace all globs with the full paths because:
/var/lib/libpcre*)And use only the non-legacy paths on mkdir. Besides mirroring what the
current version of Rogue Legacy does (and avoiding the creation of
unnecessary dirs), this is also done because if the following applies
(i.e.: this was not tested):
Then it would make the newly-created and empty path 4 clobber the
non-legacy path 3 and thus make it seem like no save files exist. This
would persist even if steam is run without firejail afterwards, as the
empty directory would still be there. Losing (or appearing to lose)
game saves can be very unfortunate, so create just the non-legacy paths
to avoid confusion.
[1] #4170 (comment)
[2] https://steamcommunity.com/app/241600/discussions/1/846957366713233279/
[3] https://www.pcgamingwiki.com/wiki/Rogue_Legacy#Game_data
Original message below (for the thread to make sense):
steam.profile: remove rogue legacy to fix syntax
Remove the mkdir with globbing, which causes this:
@davidebeatrici commented on 2021-04-23[1]:
Added on commit
bd7ad371e("steam: also added paths todisable-programs.inc") / PR #4170.
The wildcard was used because Rogue Legacy apparently looks up multiple
different paths for the config and also for the data[1][2][3]:
The ones containing "RogueLegacyStorageContainer" appear to be legacy
paths (i.e.: paths which are only created by older Rogue Legacy
versions)[2]. So if the following applies (i.e.: it was not tested):
Then it would make the newly-created and empty path 4 clobber the
non-legacy path 3 and thus make it seem like no save files exist. This
would persist even if steam is run without firejail afterwards, as the
empty directory would still be there. Losing (or appearing to lose)
game saves can be very unfortunate, so just ignore all the Rogue Legacy
paths for now to avoid confusion.
Note: This is a problem whenever a program supports multiple clobbering
paths and mkdir/mkfile + whitelisting is involved.
[1] https://github.com/netblue30/firejail/pull/4170#issuecomment-825405930
[2] https://steamcommunity.com/app/241600/discussions/1/846957366713233279/
[3] https://www.pcgamingwiki.com/wiki/Rogue_Legacy#Game_data
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.