Bug 484826 - selinux policy required for TPS and RA subsystems
Summary: selinux policy required for TPS and RA subsystems
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Dogtag Certificate System
Classification: Retired
Component: SELinux
Version: unspecified
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Ade Lee
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 443788
TreeView+ depends on / blocked
 
Reported: 2009-02-10 04:58 UTC by Ade Lee
Modified: 2015-01-04 23:36 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-22 23:32:15 UTC
Embargoed:


Attachments (Terms of Use)
patch to fix (13.72 KB, patch)
2009-02-10 06:54 UTC, Ade Lee
no flags Details | Diff
patch to fix native-tools (1.70 KB, patch)
2009-02-11 18:08 UTC, Ade Lee
no flags Details | Diff

Description Ade Lee 2009-02-10 04:58:35 UTC
Description of problem:
Further inspection determined that the TPS and RA subsystems actually started in uncontained mode - meaning that the selinux policies for TPS and RA originally delivered were not used.

The init scripts need to be changed, and the selinux profiles modified so that the TPS and RA subsystems start up and install correctly.

Also, the RA and TPS subsystems appear to require the use of rpm -- this is a dependency that is unnecessary, and appears to result from a call to pkidist. pkidist needs to be modified to no longer use rpm. 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ade Lee 2009-02-10 06:54:40 UTC
Created attachment 331397 [details]
patch to fix 

mharmsen, please review

Comment 2 Ade Lee 2009-02-11 18:08:01 UTC
Created attachment 331599 [details]
patch to fix native-tools

As pointed out by mharmsen, slightly different sed line needed in native tools.

mharmsen, please review.

Comment 3 Matthew Harmsen 2009-02-11 18:41:35 UTC
attachment (id=331397)
attachment (id=331599) +mharmsen
* you will also need to update the native-tools, selinux, ra, and tps release numbers and changelogs in their associated dogtag spec files with this bug; no need to make extra attachments

Comment 4 Ade Lee 2009-02-11 19:43:25 UTC
[builder@dhcp231-124 dogtag]$ svn ci -m "Bugzilla 484826" selinux tps ra native-tools
Sending        native-tools/pki-native-tools.spec
Sending        ra/pki-ra.spec
Sending        selinux/pki-selinux.spec
Sending        tps/pki-tps.spec
Transmitting file data ....
Committed revision 223.

[builder@oliver base]$ svn ci -m "Bugzilla 464826"
Sending        native-tools/setup_package
Sending        ra/etc/init.d/httpd
Sending        selinux/src/pki.if
Sending        selinux/src/pki.te
Sending        tps/etc/init.d/httpd
Transmitting file data .....
Committed revision 222.

Comment 5 Jenny Severance 2009-06-05 16:07:03 UTC
[root@qe-blade-11 tmp]# ps -eZ | grep pki
root:system_r:pki_tps_t          9755 ?        00:00:00 nss_pcache
root:system_r:pki_tps_t          9764 ?        00:00:00 nss_pcache
root:system_r:pki_tps_t          9777 ?        6-20:23:28 httpd.worker
root:system_r:pki_tps_t         15537 ?        00:00:00 nss_pcache
root:system_r:pki_tps_t         15546 ?        00:00:00 nss_pcache
root:system_r:pki_tps_t         15559 ?        1-02:34:32 httpd.worker
root:system_r:pki_ca_t          17381 ?        00:00:09 java
root:system_r:pki_kra_t         18570 ?        00:00:03 java
root:system_r:pki_ocsp_t        19589 ?        00:00:03 java
root:system_r:pki_tks_t         20590 ?        00:00:03 java
root:system_r:pki_tps_t         21489 ?        00:00:00 nss_pcache
root:system_r:pki_tps_t         21498 ?        00:00:00 nss_pcache
root:system_r:pki_tps_t         21511 ?        19:26:40 httpd.worker
root:system_r:pki_ra_t          22126 pts/0    00:00:00 nss_pcache
root:system_r:pki_ra_t          22135 pts/0    00:00:00 nss_pcache
root:system_r:pki_ra_t          22136 ?        00:00:00 httpd.worker
root:system_r:pki_ra_t          22148 ?        00:00:00 httpd.worker
root:system_r:pki_tps_t         24806 pts/0    00:00:00 nss_pcache
root:system_r:pki_tps_t         24815 pts/0    00:00:00 nss_pcache
root:system_r:pki_tps_t         24816 ?        00:00:00 httpd.worker
root:system_r:pki_tps_t         24828 ?        00:00:00 httpd.worker
root:system_r:pki_ca_t          27665 ?        00:00:05 java

processes not running unconfined, no selinux messages on install and configuration of any subsystem

Verified


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