Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
ecf1f120
Unverified
Commit
ecf1f120
authored
Apr 11, 2020
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/no-new-privs: Don't mess with /etc/lxc
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
3d894978
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lxc-test-no-new-privs
src/tests/lxc-test-no-new-privs
+4
-2
No files found.
src/tests/lxc-test-no-new-privs
View file @
ecf1f120
...
@@ -36,11 +36,13 @@ cleanup() {
...
@@ -36,11 +36,13 @@ cleanup() {
trap
cleanup EXIT SIGHUP SIGINT SIGTERM
trap
cleanup EXIT SIGHUP SIGINT SIGTERM
mkdir
-p
/etc/lxc/
if
[
!
-d
/etc/lxc
]
;
then
cat
>
/etc/lxc/default.conf
<<
EOF
mkdir
-p
/etc/lxc/
cat
>
/etc/lxc/default.conf
<<
EOF
lxc.net.0.type = veth
lxc.net.0.type = veth
lxc.net.0.link = lxcbr0
lxc.net.0.link = lxcbr0
EOF
EOF
fi
ARCH
=
i386
ARCH
=
i386
if
type
dpkg
>
/dev/null 2>&1
;
then
if
type
dpkg
>
/dev/null 2>&1
;
then
...
...
Write
Preview
Markdown
is supported
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