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
69e38e00
Commit
69e38e00
authored
Jul 12, 2017
by
Long Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: s/aa_allow_incomplete/apparmor.allow_incomplete/g
Signed-off-by:
Long Wang
<
w@laoqinren.net
>
parent
93e2c336
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
lxc.container.conf.sgml.in
doc/ja/lxc.container.conf.sgml.in
+1
-1
lxc.container.conf.sgml.in
doc/ko/lxc.container.conf.sgml.in
+1
-1
lxc.container.conf.sgml.in
doc/lxc.container.conf.sgml.in
+1
-1
confile.c
src/lxc/confile.c
+1
-1
apparmor.c
src/lxc/lsm/apparmor.c
+1
-1
lxc-test-apparmor-mount
src/tests/lxc-test-apparmor-mount
+1
-1
No files found.
doc/ja/lxc.container.conf.sgml.in
View file @
69e38e00
...
@@ -1715,7 +1715,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
...
@@ -1715,7 +1715,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>
<term>
<option>lxc.a
a_
allow_incomplete</option>
<option>lxc.a
pparmor.
allow_incomplete</option>
</term>
</term>
<listitem>
<listitem>
<para>
<para>
...
...
doc/ko/lxc.container.conf.sgml.in
View file @
69e38e00
...
@@ -1655,7 +1655,7 @@ proc proc proc nodev,noexec,nosuid 0 0
...
@@ -1655,7 +1655,7 @@ proc proc proc nodev,noexec,nosuid 0 0
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>
<term>
<option>lxc.a
a_
allow_incomplete</option>
<option>lxc.a
pparmor.
allow_incomplete</option>
</term>
</term>
<listitem>
<listitem>
<para>
<para>
...
...
doc/lxc.container.conf.sgml.in
View file @
69e38e00
...
@@ -1242,7 +1242,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
...
@@ -1242,7 +1242,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>
<term>
<option>lxc.a
a_
allow_incomplete</option>
<option>lxc.a
pparmor.
allow_incomplete</option>
</term>
</term>
<listitem>
<listitem>
<para>
<para>
...
...
src/lxc/confile.c
View file @
69e38e00
...
@@ -1370,7 +1370,7 @@ static int set_config_apparmor_allow_incomplete(const char *key,
...
@@ -1370,7 +1370,7 @@ static int set_config_apparmor_allow_incomplete(const char *key,
return
-
1
;
return
-
1
;
if
(
lxc_conf
->
lsm_aa_allow_incomplete
>
1
)
{
if
(
lxc_conf
->
lsm_aa_allow_incomplete
>
1
)
{
ERROR
(
"Wrong value for lxc.
lsm_aa_
allow_incomplete. Can only "
ERROR
(
"Wrong value for lxc.
apparmor.
allow_incomplete. Can only "
"be set to 0 or 1"
);
"be set to 0 or 1"
);
return
-
1
;
return
-
1
;
}
}
...
...
src/lxc/lsm/apparmor.c
View file @
69e38e00
...
@@ -218,7 +218,7 @@ static int apparmor_process_label_set(const char *inlabel, struct lxc_conf *conf
...
@@ -218,7 +218,7 @@ static int apparmor_process_label_set(const char *inlabel, struct lxc_conf *conf
WARN
(
"Incomplete AppArmor support in your kernel"
);
WARN
(
"Incomplete AppArmor support in your kernel"
);
if
(
!
conf
->
lsm_aa_allow_incomplete
)
{
if
(
!
conf
->
lsm_aa_allow_incomplete
)
{
ERROR
(
"If you really want to start this container, set"
);
ERROR
(
"If you really want to start this container, set"
);
ERROR
(
"lxc.a
a_
allow_incomplete = 1"
);
ERROR
(
"lxc.a
pparmor.
allow_incomplete = 1"
);
ERROR
(
"in your container configuration file"
);
ERROR
(
"in your container configuration file"
);
return
-
1
;
return
-
1
;
}
}
...
...
src/tests/lxc-test-apparmor-mount
View file @
69e38e00
...
@@ -213,7 +213,7 @@ run_cmd lxc-stop -n $cname -k
...
@@ -213,7 +213,7 @@ run_cmd lxc-stop -n $cname -k
echo
"testing override"
echo
"testing override"
sed
-i
'/aa_profile/d'
$HDIR
/.local/share/lxc/
$cname
/config
sed
-i
'/aa_profile/d'
$HDIR
/.local/share/lxc/
$cname
/config
echo
"lxc.a
a_
allow_incomplete = 1"
>>
$HDIR
/.local/share/lxc/
$cname
/config
echo
"lxc.a
pparmor.
allow_incomplete = 1"
>>
$HDIR
/.local/share/lxc/
$cname
/config
run_cmd lxc-start
-n
$cname
-d
run_cmd lxc-start
-n
$cname
-d
run_cmd lxc-wait
-n
$cname
-s
RUNNING
run_cmd lxc-wait
-n
$cname
-s
RUNNING
pid
=
`
run_cmd lxc-info
-p
-H
-n
$cname
`
pid
=
`
run_cmd lxc-info
-p
-H
-n
$cname
`
...
...
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