我在这里按照指南的第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
完成此处的安装步骤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
Debian jessie不完全支持Selinux
注意参考政策不在jessie中
不幸的是,refpolicy源程序包的维护者未处理其程序包上的发行关键错误,并且该程序包已从jessie中删除。这意味着selinux-policy- *软件包当前无法在jessie中安装,需要从另一个地方获取。希望他们能在这些重点发布之一或在jessie-backports中回来。在此期间,您可以从不稳定状态中抓住它们。
这种悲惨的情况至少证明SELinux在运行Debian开发版本的用户/开发人员中不是很流行。因此,如果您选择使用SELinux,则应该期望默认策略不能完美运行,并且您将不得不花费大量时间使其适合您的特定需求。
该selinux-policy-default
软件包仅适用于debian Wheezy,Stretch,Buster和Sid。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句