Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
steam-runtime-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
steamrt
steam-runtime-tools
Commits
5d3325e1
Commit
5d3325e1
authored
6 years ago
by
Simon McVittie
Browse files
Options
Downloads
Patches
Plain Diff
Don't make the real $HOME available to the app even if it is $PWD
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
98d7adaa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pressure-vessel-wrap
+9
-2
9 additions, 2 deletions
pressure-vessel-wrap
with
9 additions
and
2 deletions
pressure-vessel-wrap
+
9
−
2
View file @
5d3325e1
...
@@ -105,7 +105,8 @@ usage () {
...
@@ -105,7 +105,8 @@ usage () {
echo
echo
echo
"Run COMMAND [ARGS...] in a container that protects
\$
HOME."
echo
"Run COMMAND [ARGS...] in a container that protects
\$
HOME."
echo
echo
echo
"The current working directory will be writeable for COMMAND."
echo
"The current working directory will be writeable for COMMAND,"
echo
"unless it is the real home directory."
echo
echo
echo
"Options:"
echo
"Options:"
echo
"--steam-app-id=123 Use ~/.var/app/com.steampowered.App123"
echo
"--steam-app-id=123 Use ~/.var/app/com.steampowered.App123"
...
@@ -254,7 +255,13 @@ fi
...
@@ -254,7 +255,13 @@ fi
# Make sure the current working directory (the game we are going to
# Make sure the current working directory (the game we are going to
# run) is available. Some games write here.
# run) is available. Some games write here.
PWD
=
"
$(
pwd
)
"
PWD
=
"
$(
pwd
)
"
set
--
--bind
"
$PWD
"
"
$PWD
"
--chdir
"
$PWD
"
"
$@
"
if
test
"
$HOME
"
-ef
"
$PWD
"
;
then
echo
"
$me
: Not making real
$PWD
available to container because it is"
\
"the home directory"
>
&2
else
set
--
--bind
"
$PWD
"
"
$PWD
"
"
$@
"
fi
set
--
--chdir
"
$PWD
"
"
$@
"
# We need libraries from the Steam Runtime, so make sure that's visible
# We need libraries from the Steam Runtime, so make sure that's visible
# (it should never need to be read/write though)
# (it should never need to be read/write though)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment