Bug 1101280 - Package pulp-selinux and candlepin-selinux are installed but not effective
Summary: Package pulp-selinux and candlepin-selinux are installed but not effective
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SELinux
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1125334 1125337
TreeView+ depends on / blocked
 
Reported: 2014-05-26 14:51 UTC by Lukas Zapletal
Modified: 2017-02-23 21:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1125334 1125337 (view as bug list)
Environment:
Last Closed: 2014-09-03 14:39:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Comment (74.48 KB, text/plain)
2014-05-26 14:51 UTC, Lukas Zapletal
no flags Details

Description Lukas Zapletal 2014-05-26 14:51:09 UTC
Created attachment 915907 [details]
Comment

(This comment was longer than 65,535 characters and has been moved to an attachment by Red Hat Bugzilla).

Comment 1 RHEL Program Management 2014-05-26 14:53:52 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Lukas Zapletal 2014-05-28 07:57:05 UTC
Sorry I meant they are installed, but not effective. Let me investigate this first.

Comment 5 Lukas Zapletal 2014-07-31 15:19:00 UTC
Cloned into Pulp and Candlepin projects, waiting for confirmation or explanation.

Comment 6 Daniel Walsh 2014-08-05 12:27:16 UTC
I have no idea what this bugzilla is complaining about?  What are the pulp-selinux and candlepin-selinux packages supposed to do?  And why do you think they are not effective?

Comment 7 Lukas Zapletal 2014-08-06 13:20:40 UTC
The issue I have the current candlepin-selinux policy:

https://github.com/candlepin/candlepin/tree/master/server/selinux

I can see specific domain and some rules but I can't find any process running as candlepin_t. I can only see tomcat6 process running in the generic unconfined_java_t.

Those packages which are installed with Candlepin/Pulp are supposed to carry project policies similarly like spacewalk-selinux or foreman-selinux do.

I suspect that the candlepin policy is outdated and not used at all. For Pulp, I think it is partially working.

Please dicuss this in the cloned bugs for each project, these are two different cases I think.

Comment 8 Daniel Walsh 2014-08-06 15:51:23 UTC
Did you run this through a init script or run it directly.  You need to use the service script to start your instance.

unconfined_t will not transition directly to your domain.

unconfined_t @initrc_exec_t -> initrc_t @ candlepin_exec_t -> candlepin_t

Comment 9 Lukas Zapletal 2014-08-11 06:55:31 UTC
Dan, I only use the init scripts of course. This is the bug I am reporting here. It ends up in wrong context.

Comment 10 Daniel Walsh 2014-08-12 13:40:47 UTC
Well then one of the scripts is labeled bin_t rather then initrc_exec_t, in order for a system service to continue to run as unconfined_t.  

What does the service run as if it is started during the boot.

Comment 12 Miroslav Grepl 2014-09-03 14:06:19 UTC
Lukas,
there will be an issue with java and how it is executed. Basically you need to have a helper script which executes tomcat from this script.

Comment 13 Lukas Zapletal 2014-09-03 14:39:49 UTC
Moving your last comment to the cloned bug, closing this one.


Note You need to log in before you can comment on or make changes to this bug.