<div dir="auto">Thanks! <div dir="auto">I'll try your suggestions in a day or so...</div></div><div class="gmail_extra"><br><div class="gmail_quote">On May 25, 2017 23:21, "Christian Göttsche" <<a href="mailto:cgzones@googlemail.com">cgzones@googlemail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2017-05-25 21:54 GMT+02:00 Lev Kuznetsov <<a href="mailto:lev.kuznets@gmail.com">lev.kuznets@gmail.com</a>>:<br>
> Thanks for your reply Christian!!!<br>
> I have tried the default policy...<br>
> It didnt seem to have any errors but when I changed the grub command to run<br>
> selinux, it didnt work - I saw SELinux init msg in the kernel log, but it<br>
> wasnt able to load the policy...)<br>
<br>
Some preconditions I think you met already:<br>
The kernel must be compiled with SELinux support: CONFIG_SECURITY_SELINUX=y<br>
The kernel must be booted with the cmdline option 'security=selinux'<br>
<br>
In the file /etc/selinux/config there should be the follwing lines:<br>
SELINUX=enforcing<br>
SELINUXTYPE=default # or some other policy name<br>
<br>
Then there should be the binary policy at<br>
/etc/selinux/POLICY_NAME/<wbr>policy/policy.POLICY_VERSION<br>
where POLICY_NAME is the policy name from above and POLICY_VERSION a<br>
number up to 30 (depended on kernel version)<br>
If not, you might need to load the modules, e.g. semodule -X 100 -i<br>
/usr/share/selinux/default/*<br>
<br>
> Did you had a successful experience with SELinux and Debian 8 (jessie)? if<br>
> yes, that will give me some motivation to continue :)<br>
<br>
I maybe used SELinux on jessie some years ago, nowadays I use it on stretch/sid.<br>
<br>
> I also tried your suggestion with<br>
> <a href="https://github.com/TresysTechnology/refpolicy/wiki/UseRefpolicy" rel="noreferrer" target="_blank">https://github.com/<wbr>TresysTechnology/refpolicy/<wbr>wiki/UseRefpolicy</a> I will try a<br>
> clean install...<br>
><br>
> p.s.<br>
> I think refpolicy and default policy are from the same source...<br>
<br>
Yes, with some Debian related patches<br>
<br>
> And again, thanks for your reply, I really appreciate it!<br>
><br>
> On Tue, May 23, 2017 at 8:21 PM, Christian Göttsche <<a href="mailto:cgzones@googlemail.com">cgzones@googlemail.com</a>><br>
> wrote:<br>
>><br>
>> Did you try to install the selinux-policy-default package from stretch<br>
>> or testing? (Are there any errors?)<br>
>><br>
>> SELinux needs a policy to be enabled, otherwise you can try the<br>
>> upstream reference policy<br>
>> <a href="https://github.com/TresysTechnology/refpolicy/wiki/UseRefpolicy" rel="noreferrer" target="_blank">https://github.com/<wbr>TresysTechnology/refpolicy/<wbr>wiki/UseRefpolicy</a><br>
>><br>
>> 2017-05-20 17:12 GMT+02:00 Lev Kuznetsov <<a href="mailto:lev.kuznets@gmail.com">lev.kuznets@gmail.com</a>>:<br>
>> > Hi all,<br>
>> > Ive been struggling with this for over a week now :(<br>
>> > 2 questions:<br>
>> > 1) Is SELinux supported on Debian GNU/Linux 8.7 (jessie) ?<br>
>> > With custom 3.16.43 Kernel (compiled with SELinux support):<br>
>> > Linux debian 3.16.43custom #34 SMP Mon May 15 20:55:00 EDT 2017 i686<br>
>> > GNU/Linux<br>
>> ><br>
>> > 2) If so, how to enable some example policy?<br>
>> > I am trying to use the instructions from here<br>
>> > (<a href="https://wiki.debian.org/SELinux/Setup" rel="noreferrer" target="_blank">https://wiki.debian.org/<wbr>SELinux/Setup</a>)<br>
>> > The problem is that selinux-policy-default is not part of debian<br>
>> > packages<br>
>> > sine it failed some tests... Any instructions I tried to install the<br>
>> > package<br>
>> > are not working... Although the installation finishes, SELinux is not<br>
>> > acivated on startup....<br>
>> ><br>
>> ><br>
>> > Any advice/help is appreciated... Even a 'Yes'/'No' answer from someone<br>
>> > who<br>
>> > has tried that...<br>
>> ><br>
>> > Additional info:<br>
>> > I see in the SELinux is initialized in the kernel log, but no policy is<br>
>> > loaded and SELinux is disabled when running "sestatus"<br>
>> ><br>
>> > Thanks, Lev<br>
>> ><br>
>> > ______________________________<wbr>_________________<br>
>> > SELinux-devel mailing list<br>
>> > <a href="mailto:SELinux-devel@lists.alioth.debian.org">SELinux-devel@lists.alioth.<wbr>debian.org</a><br>
>> > <a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/selinux-devel" rel="noreferrer" target="_blank">http://lists.alioth.debian.<wbr>org/cgi-bin/mailman/listinfo/<wbr>selinux-devel</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Regards,<br>
> Lev Kuznetsov<br>
</blockquote></div></div>