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
b3e4df8a
Commit
b3e4df8a
authored
Mar 15, 2016
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #896 from hallyn/2016-03-15/nest
2016 03 15/nest
parents
01283774
e6bff191
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
10 deletions
+4
-10
debian.common.conf.in
config/templates/debian.common.conf.in
+0
-4
ubuntu.common.conf.in
config/templates/ubuntu.common.conf.in
+0
-4
Makefile.am
src/lxc/Makefile.am
+1
-0
lxccontainer.c
src/lxc/lxccontainer.c
+3
-0
lxc-cirros.in
templates/lxc-cirros.in
+0
-2
No files found.
config/templates/debian.common.conf.in
View file @
b3e4df8a
...
@@ -9,10 +9,6 @@ lxc.devttydir =
...
@@ -9,10 +9,6 @@ lxc.devttydir =
# (uncommented) to the container's configuration file.
# (uncommented) to the container's configuration file.
#lxc.aa_profile = unconfined
#lxc.aa_profile = unconfined
# To support container nesting on an Ubuntu host while retaining most of
# apparmor's added security, use the following line instead.
#lxc.aa_profile = lxc-container-default-with-nesting
# If you wish to allow mounting block filesystems, then use the following
# If you wish to allow mounting block filesystems, then use the following
# line instead, and make sure to grant access to the block device and/or loop
# line instead, and make sure to grant access to the block device and/or loop
# devices below in lxc.cgroup.devices.allow.
# devices below in lxc.cgroup.devices.allow.
...
...
config/templates/ubuntu.common.conf.in
View file @
b3e4df8a
...
@@ -12,10 +12,6 @@ lxc.mount.entry = mqueue dev/mqueue mqueue rw,relatime,create=dir,optional 0 0
...
@@ -12,10 +12,6 @@ lxc.mount.entry = mqueue dev/mqueue mqueue rw,relatime,create=dir,optional 0 0
# (uncommented) to the container's configuration file.
# (uncommented) to the container's configuration file.
#lxc.aa_profile = unconfined
#lxc.aa_profile = unconfined
# To support container nesting on an Ubuntu host while retaining most of
# apparmor's added security, use the following line instead.
#lxc.aa_profile = lxc-container-default-with-nesting
# Uncomment the following line to autodetect squid-deb-proxy configuration on the
# Uncomment the following line to autodetect squid-deb-proxy configuration on the
# host and forward it to the guest at start time.
# host and forward it to the guest at start time.
#lxc.hook.pre-start = /usr/share/lxc/hooks/squid-deb-proxy-client
#lxc.hook.pre-start = /usr/share/lxc/hooks/squid-deb-proxy-client
...
...
src/lxc/Makefile.am
View file @
b3e4df8a
...
@@ -145,6 +145,7 @@ AM_CFLAGS=-I$(top_srcdir)/src \
...
@@ -145,6 +145,7 @@ AM_CFLAGS=-I$(top_srcdir)/src \
-DLXCINITDIR
=
\"
$(LXCINITDIR)
\"
\
-DLXCINITDIR
=
\"
$(LXCINITDIR)
\"
\
-DLIBEXECDIR
=
\"
$(LIBEXECDIR)
\"
\
-DLIBEXECDIR
=
\"
$(LIBEXECDIR)
\"
\
-DLXCTEMPLATEDIR
=
\"
$(LXCTEMPLATEDIR)
\"
\
-DLXCTEMPLATEDIR
=
\"
$(LXCTEMPLATEDIR)
\"
\
-DLXCTEMPLATECONFIG
=
\"
$(LXCTEMPLATECONFIG)
\"
\
-DLOGPATH
=
\"
$(LOGPATH)
\"
\
-DLOGPATH
=
\"
$(LOGPATH)
\"
\
-DLXC_DEFAULT_CONFIG
=
\"
$(LXC_DEFAULT_CONFIG)
\"
\
-DLXC_DEFAULT_CONFIG
=
\"
$(LXC_DEFAULT_CONFIG)
\"
\
-DLXC_USERNIC_DB
=
\"
$(LXC_USERNIC_DB)
\"
\
-DLXC_USERNIC_DB
=
\"
$(LXC_USERNIC_DB)
\"
\
...
...
src/lxc/lxccontainer.c
View file @
b3e4df8a
...
@@ -1375,6 +1375,9 @@ static bool prepend_lxc_header(char *path, const char *t, char *const argv[])
...
@@ -1375,6 +1375,9 @@ static bool prepend_lxc_header(char *path, const char *t, char *const argv[])
fprintf
(
f
,
"
\n
"
);
fprintf
(
f
,
"
\n
"
);
#endif
#endif
fprintf
(
f
,
"# For additional config options, please look at lxc.container.conf(5)
\n
"
);
fprintf
(
f
,
"# For additional config options, please look at lxc.container.conf(5)
\n
"
);
fprintf
(
f
,
"
\n
# Uncomment the following line to support nesting containers:
\n
"
);
fprintf
(
f
,
"#lxc.include = "
LXCTEMPLATECONFIG
"/nesting.conf
\n
"
);
fprintf
(
f
,
"# (Be aware this has security implications)
\n\n
"
);
if
(
fwrite
(
contents
,
1
,
flen
,
f
)
!=
flen
)
{
if
(
fwrite
(
contents
,
1
,
flen
,
f
)
!=
flen
)
{
SYSERROR
(
"Writing original contents"
);
SYSERROR
(
"Writing original contents"
);
free
(
contents
);
free
(
contents
);
...
...
templates/lxc-cirros.in
View file @
b3e4df8a
...
@@ -130,8 +130,6 @@ lxc.cap.drop = sys_module mac_admin mac_override sys_time
...
@@ -130,8 +130,6 @@ lxc.cap.drop = sys_module mac_admin mac_override sys_time
# When using LXC with apparmor, uncomment the next line to run unconfined:
# When using LXC with apparmor, uncomment the next line to run unconfined:
#lxc.aa_profile = unconfined
#lxc.aa_profile = unconfined
# To support container nesting on an Ubuntu host, uncomment next two lines:
#lxc.aa_profile = lxc-container-default-with-nesting
lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.deny = a
...
...
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