Как установить свежие стабильные политики SELinux в Debian 8.7?

С GNU awk :

BEGIN { fname = "/dev/null" }
/<header>/,/<\/header>/ { hdr = hdr $0 "\n"; next }
/^<event / {
    events++
    if(events % 10000 == 1) {
        if(files++) close(fname)
        fname = sprintf("file%02d.txt", files)
        print hdr >fname
    }        
}            
{ print >>fname }

Чтобы запустить его: запишите его в файл script.awk , затем запустите:

gawk -f script.awk file.txt
3
20.06.2017, 15:14
1 ответ

Selinux не полностью поддерживается в Debian Jessie

Руководство по Debian

CAUTION Reference policy not in jessie

Unfortunately the maintainers of the refpolicy source package did not handle release critical bugs on their package and the package got removed from jessie. This means that the selinux-policy-* packages are currently not installable in jessie and need to be fetched from another place. Hopefully they will come back in one of the point releases or in jessie-backports. In the meantime, you can grab them from unstable.

This sad situation at least proves that SELinux is not very popular in the set of users/developers who are running the development versions of Debian. Thus, if you opt to use SELinux, you should expect the default policy to not work perfectly and you will have to invest quite some time to make it suitable to your specific needs.

Пакетselinux-policy-defaultдоступен только для Debian Wheezy, Stretch, Buster и Sid.

3
27.01.2020, 21:21

Теги

Похожие вопросы