Debian policy package
I've attached my current working patch against the latest unstable policy, it's not much but it makes it possible to restart hal.
Where did all those reads of /dev/urandom in unstable come from? Has some sort of randomised stack been enabled in many things?
I think that the code which has a mapping of package names to policy modules should be in a separate script (not in the postinst). Then you could have scripts like "find-necessary-policy.default" and "find-necessary-policy.mls" that take a list of package names on stdin and output a list of policy modules on stdout. Such scripts could be used for initial configuration of the policy and for installing new packages.
apt-get has the ability to list all packages that it would install (including dependencies and recommends if it's configured to install them). We need a way to have a single command load SE Linux policy modules first and then have apt install the packages later. NB I don't consider it a problem if the policy modules remain installed after apt aborts.
Signature · 3 lines
[email protected] http://etbe.coker.com.au/ My Main Blog http://doc.coker.com.au/ My Documents Blog
debian/changelog +9 -0
@@ -1,3 +1,12 @@ +refpolicy (2:0.2.20090730-2.1) unstable; urgency=low + + * Build policykit policy and default to loading it when the policykit + package is installed. + * Default to loading the consolekit module when the consolekit package is + installed. + + -- Russell Coker <[email protected]> Wed, 26 Aug 2009 18:55:23 +1000 + refpolicy (2:0.2.20090730-2) unstable; urgency=low * Bug fix: "selinux policy violation "Unknown" fo rs2ram
debian/modules.conf.default +8 -0
@@ -1334,6 +1334,14 @@ pingd = module # Layer: services +# Module: policykit +# +# PolicyKit is an application-level toolkit for defining and handling the policy +# that allows unprivileged processes to speak to privileged processes. +# +policykit = module + +# Layer: services # Module: portmap # # RPC port mapping service.
debian/modules.conf.mls +8 -0
@@ -1334,6 +1334,14 @@ pingd = module # Layer: services +# Module: policykit +# +# PolicyKit is an application-level toolkit for defining and handling the policy +# that allows unprivileged processes to speak to privileged processes. +# +policykit = module + +# Layer: services # Module: portmap # # RPC port mapping service.
debian/postinst.policy +2 -0
@@ -75,6 +75,7 @@ 'cdrecord' => [ 'wodim' ], 'clamav' => [ 'clamav' ], 'courier' => [ 'courier*' ], + 'consolekit' => [ 'consolekit' ], 'cups' => [ 'cupsys*' ], 'cyrus' => [ 'cyrus*' ], 'dovecot' => [ 'dovecot-imapd', 'dovecot-pop3d' ],
@@ -103,6 +104,7 @@ 'nagios' => [ 'nagios*' ], 'netutils' => [ 'arping', 'nmap', '*-ping', 'traceroute*' ], 'pcmcia' => [ 'pcmciautils' ], + 'policykit' => [ 'policykit' ], 'pythonsupport' => [ 'python-support' ], 'radius' => [ 'freeradius*', 'radiusd*' ], 'raid' => [ 'mdadm' ],