如何在Debian 8.7中设置最近稳定的SELinux策略?

LéoLéopoldHertz Jun-young

我在这里按照指南的第12步进行操作,但是没有找到任何最新且稳定的政策,只是那里的“旧”事物和不稳定的政策。代码和输出

masi@masi:~$ apt search SELinux | grep selinux

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

android-libselinux/unstable 7.0.0+r1-2 amd64
android-libselinux-dev/unstable 7.0.0+r1-2 amd64
libselinux1/oldstable,oldstable,now 2.3-2 amd64 [installed]
libselinux1-dev/oldstable,oldstable 2.3-2 amd64
python-selinux/oldstable,oldstable 2.3-2 amd64
python3-selinux/unstable 2.6-3+b1 amd64
ruby-selinux/oldstable,oldstable 2.3-2 amd64
selinux-basics/oldstable,oldstable 0.5.2 all
selinux-policy-default/unstable 2:2.20161023.1-9 all
selinux-policy-dev/unstable 2:2.20161023.1-9 all
selinux-policy-doc/unstable 2:2.20161023.1-9 all
selinux-policy-mls/unstable 2:2.20161023.1-9 all
selinux-policy-src/unstable 2:2.20161023.1-9 all
selinux-utils/oldstable,oldstable 2.3-2 amd64

测试2

完成此处的安装步骤policycoreutils-python代码但依赖项失败

masi@masi:/etc/ssh$ sudo apt install policycoreutils-python-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 policycoreutils-python-utils : Depends: policycoreutils (= 2.6-3) but it is not going to be installed
                                Depends: python3-audit but it is not going to be installed
                                Depends: python3-selinux (>= 2.6) but it is not going to be installed
                                Depends: python3-semanage (>= 2.6) but it is not going to be installed
                                Depends: python3-sepolgen (>= 2.6) but it is not going to be installed
                                Depends: python3-sepolicy (= 2.6-3) but it is not going to be installed
                                Depends: libselinux1 (>= 2.6) but 2.3-2 is to be installed
                                Depends: libsepol1 (>= 2.6) but 2.3-2 is to be installed
E: Unable to correct problems, you have held broken packages.

操作系统:Debian 8.7

GAD3R

Debian jessie不完全支持Selinux

Debian手册

注意参考政策不在jessie中

不幸的是,refpolicy源程序包的维护者未处理其程序包上的发行关键错误,并且该程序包已从jessie中删除。这意味着selinux-policy- *软件包当前无法在jessie中安装,需要从另一个地方获取。希望他们能在这些重点发布之一或在jessie-backports中回来。在此期间,您可以从不稳定状态中抓住它们。

这种悲惨的情况至少证明SELinux在运行Debian开发版本的用户/开发人员中不是很流行。因此,如果您选择使用SELinux,则应该期望默认策略不能完美运行,并且您将不得不花费大量时间使其适合您的特定需求。

selinux-policy-default软件包仅适用于debian Wheezy,Stretch,Buster和Sid。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

如何在Debian 8中安装Vim 8?

来自分类Dev

如何在Debian 8上设置Rails sunspot solr生产?

来自分类Dev

如何在Debian 8中提取光标主题?

来自分类Dev

如何在Debian deb软件包中配置Java 7或Java 8依赖关系?

来自分类Dev

如何在Debian Jessie(8)中安装mongodb 3.x?mongodb网站仅支持Wheezy

来自分类Dev

如何在Linux Debian 8 Jessie(Gnome 3 DE)中激活热键?

来自分类Dev

如何在Apache 2 Debian 8中创建网站?

来自分类Dev

如何在Debian 8上安装libssl?

来自分类Dev

如何在Debian 8 64Bit中的VPS中检查正在运行的操作系统

来自分类Dev

在Debian 8中设置LIRC

来自分类Dev

如何在稳定的Debian中安装`service`命令?

来自分类Dev

如何在Debian 8上安装Mono 4.0.1?

来自分类Dev

如何在Debian 10上安装JDK8

来自分类Dev

如何在Debian 8上安装最新的git?

来自分类Dev

如何在Windows 8中访问最近打开的文件?

来自分类Dev

如何在Windows 8中访问最近打开的文件?

来自分类Dev

如何在Debian测试中安装libgnomeprint?

来自分类Dev

如何在debian中从USB安装Ubuntu?

来自分类Dev

AptConf如何在Debian Wheezy中工作?

来自分类Dev

如何在Debian中安装Flex(lex)

来自分类Dev

如何在Kali / Debian中安装GLIBC?

来自分类Dev

如何在Debian中安装sfx文件

来自分类Dev

如何在Debian Gnome中链接Windows?

来自分类Dev

如何在Debian中安装R Vennerable?

来自分类Dev

如何在Zenbook的Debian中更新BIOS?

来自分类Dev

如何在Debian中安装R plotly?

来自分类Dev

如何在Debian中启动gem ffaker?

来自分类Dev

如何在Debian中安装npgsql?

来自分类Dev

如何在Debian 9中修复Wifi?