-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SELinux RPM - set selinuxtype to targeted #242
Conversation
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
The definition of |
@rhatdan PTAL |
@@ -103,6 +103,8 @@ Requires: selinux-policy >= %{_selinux_policy_version} | |||
|
|||
Requires(post): policycoreutils | |||
|
|||
%global selinuxtype targeted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I somehow missed that :-( even though it's mentioned in selinux packaging guidelines:
https://fedoraproject.org/wiki/SELinux_Policy_Modules_Packaging_Draft#Building_the_Policy_Modules
So is targeted
enough or do we need to add also mls
to the list?
Also as this is global option, could you please move it to the beginning of the spec file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So is targeted enough or do we need to add also mls to the list?
That's why I wanted to get input from @rhatdan
Also as this is global option, could you please move it to the beginning of the spec file?
Don't you think it's more readable when it's defined next to the sub-package it belongs to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave it as targeted. We don't plan on supporting any other form of SELinux policy especially not MLS.
LGTM |
The policy installation command in the
post
step uses this global without setting it. As a result, the policy does not get installed