Skip to contentSkip to conversation

Remove python dependency from refpol.

PATCH In review [email protected] 3 participants 3 messages Oct 9, 2013

lore
Share & tools
lore
#0 lore raw

cover Remove python dependency from refpol.

The reference policy package currently pulls in a lot of python stuff that isn't strictly necessary to boot an SELinux system and load a policy. This is caused by the mix of python and C utilities in policycoreutils.

This patch set breaks the policycoreutils recipe up into multiple packages, one for each utility. In this way we can have the refpol etc pull in only the utilities necessary for normal operation. This happens to be only the utilities written in C and thus we can remove python completely in a minimal image.

I've attempted to localize these changes as much as possible so changes in this patchset outside of the policycoreutils recipe are few. An example image reicpe is added to demonstrate a minimal image with only the utilities required to load a policy and manipulate the policy store (add / remove policy modules) at runtime.

#1 lore raw
Quoted 11 lines · [[meta-selinux][PATCH 0/5] Remove python dependency from refpol.] On 13.10.09…

The reference policy package currently pulls in a lot of python stuff that isn't strictly necessary to boot an SELinux system and load a policy. This is caused by the mix of python and C utilities in policycoreutils.

This patch set breaks the policycoreutils recipe up into multiple packages, one for each utility. In this way we can have the refpol etc pull in only the utilities necessary for normal operation. This happens to be only the utilities written in C and thus we can remove python completely in a minimal image.

Quoted 5 lines

I've attempted to localize these changes as much as possible so changes in this patchset outside of the policycoreutils recipe are few. An example image reicpe is added to demonstrate a minimal image with only the utilities required to load a policy and manipulate the policy store (add / remove policy modules) at runtime.

Hey Philip,

The patches never arrived in my mailbox and I don't see them in patchworks. Can you re-send, please?

Signature · 2 lines
-Joe MacDonald.
:wq
#2 lore raw

Morning Joe

Quoted 21 lines · Joe MacDonald

[[meta-selinux][PATCH 0/5] Remove python dependency from refpol.]

Quoted 11 lines · On 13.10.09 (Wed 03:02) [email protected] wrote:

The reference policy package currently pulls in a lot of python stuff that isn't strictly necessary to boot an SELinux system and load a policy. This is caused by the mix of python and C utilities in policycoreutils.

This patch set breaks the policycoreutils recipe up into multiple packages, one for each utility. In this way we can have the refpol etc pull in only the utilities necessary for normal operation. This happens to be only the utilities written in C and thus we can remove python completely in a minimal image.

Quoted 6 lines

I've attempted to localize these changes as much as possible so changes in this patchset outside of the policycoreutils recipe are few. An example image reicpe is added to demonstrate a minimal image with only the utilities required to load a policy and manipulate the policy store (add / remove policy modules) at runtime.

Quoted 4 lines

Hey Philip,

The patches never arrived in my mailbox and I don't see them in patchworks. Can you re-send, please?

I don't think this message made it to the list. Must have made it to you and Mark though. I've resent and will send patches momentarily.

Cheers,
- Philip