<div dir="ltr"><div><div><div><div>First of all i would like to say hello everyone.<br><br></div>Im trying to create my cointainer based on Centos 7 and Selinux enabled. <br></div>I have added this entry:<br>lxc.se.context = unconfined_u:unconfined_r:lxc_t:s0-s0:c0.c1023<br><br></div>I added to the default config which is:<br>/usr/share/lxc/config/centos.common.conf<br><br></div><div>After lxc-start -n Test im still getting error like below:<br>[root@hardenedbsd Test]# lxc-start -n Test<br>lxc-start: confile.c: parse_line: 1750 unknown key lxc.se.context<br>lxc-start: parse.c: lxc_file_for_each_line: 57 Failed to parse config: lxc.se.context = unconfined_u:unconfined_r:lxc_t:s0-s0:c0.c1023<br><br>lxc-start: parse.c: lxc_file_for_each_line: 57 Failed to parse config: lxc.include = /usr/share/lxc/config/centos.common.conf<br><br>lxc-start: lxc_start.c: main: 268 Failed to create lxc_container<br>
[root@hardenedbsd Test]#
<br><br></div><div>I was trying other way like sVirt with Selinux:<br>
virt<span class="gmail-crayon-o">-</span>install<span class="gmail-crayon-h"> </span><span class="gmail-crayon-o">--</span>connect<span class="gmail-crayon-h"> </span>lxc<span class="gmail-crayon-o">:</span><span class="gmail-crayon-o">/</span><span class="gmail-crayon-o">/</span><span class="gmail-crayon-h"></span>
...<br></div><div>After install:<br></div><div>virt -c lxc://console Test<br><br></div><div>In this way, selinux works but i want to use by lxc configuration. Can i achieve in this way ? <br></div><div>I would be really graceful for help.<br></div><div>Thank you.<br></div><div><br></div></div>