Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
636fde21
Commit
636fde21
authored
Mar 05, 2018
by
Alan
Browse files
live-persist: ASP config file should be world-readable
Refs:
#14594
parent
0f3866d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/usr/local/sbin/live-persist
View file @
636fde21
...
...
@@ -374,8 +374,7 @@ activate_volumes ()
# Regardless of the mountpoint access rights, disable persistence
# configuration files with wrong access rights.
for
f
in
$(
ls
/live/persistence/
*
_unlocked/persistence.conf
\
/live/persistence/
*
_unlocked/live-additional-software.conf
||
true
)
for
f
in
$(
ls
/live/persistence/
*
_unlocked/persistence.conf
||
true
)
do
if
!
persistence_conf_file_has_correct_access_rights
"
$f
"
"600"
then
...
...
@@ -383,6 +382,14 @@ activate_volumes ()
disable_and_create_empty_persistence_conf_file
"
$f
"
fi
done
for
f
in
$(
ls
/live/persistence/
*
_unlocked/live-additional-software.conf
||
true
)
do
if
!
persistence_conf_file_has_correct_access_rights
"
$f
"
"644"
then
warning
"Disabling '
$f
', that has unsafe access rights"
disable_and_create_empty_persistence_conf_file
"
$f
"
fi
done
# Migrate persistence settings
for
conf
in
$(
ls
/live/persistence/
*
_unlocked/persistence.conf
||
true
)
...
...
intrigeri
@intrigeri
mentioned in issue
#15781 (closed)
·
May 14, 2020
mentioned in issue
#15781 (closed)
mentioned in issue #15781
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment