Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libvirt
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Libvirt Packaging Team
libvirt
Commits
d2332044
Commit
d2332044
authored
11 years ago
by
Guido Günther
Browse files
Options
Downloads
Patches
Plain Diff
Make sure qemu.conf isn't world readable by default
since the user might add passwords to it. Closes: #710537
parent
b9a7c191
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
debian/libvirt-bin.postinst
+7
-0
7 additions, 0 deletions
debian/libvirt-bin.postinst
with
7 additions
and
0 deletions
debian/libvirt-bin.postinst
+
7
−
0
View file @
d2332044
...
...
@@ -61,6 +61,8 @@ add_statoverrides()
SANLOCK_DIR
=
"/var/lib/libvirt/sanlock"
QEMU_CONF
=
"/etc/libvirt/qemu.conf"
for
dir
in
${
ROOT_DIRS
}
;
do
if
!
dpkg-statoverride
--list
"
${
dir
}
"
>
/dev/null 2>&1
;
then
chown
root:root
"
${
dir
}
"
...
...
@@ -79,6 +81,11 @@ add_statoverrides()
chown
root:root
"
${
SANLOCK_DIR
}
"
chmod
0700
"
${
SANLOCK_DIR
}
"
fi
if
!
dpkg-statoverride
--list
"
${
QEMU_CONF
}
"
>
/dev/null 2>&1
;
then
chown
root:root
"
${
QEMU_CONF
}
"
chmod
0600
"
${
QEMU_CONF
}
"
fi
}
...
...
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