Bug 483134 - move selinux to /usr/share/selinux/modules
Summary: move selinux to /usr/share/selinux/modules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Dogtag Certificate System
Classification: Retired
Component: SELinux
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ade Lee
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 443788
TreeView+ depends on / blocked
 
Reported: 2009-01-29 20:03 UTC by Ade Lee
Modified: 2015-01-04 23:36 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-07-22 23:31:43 UTC
Embargoed:


Attachments (Terms of Use)

Description Ade Lee 2009-01-29 20:03:41 UTC
Description of problem:

To prevent conflicts, move selinux to /usr/share/selinux/modules

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-01-29 20:07:14 UTC
spec file changes .. mharmsen, please review.

Index: dogtag/selinux/pki-selinux.spec
===================================================================
--- dogtag/selinux/pki-selinux.spec     (revision 201)
+++ dogtag/selinux/pki-selinux.spec     (working copy)
@@ -33,7 +33,7 @@
 ## Package Header Definitions
 %define base_name         %{base_prefix}-%{base_component}
 %define base_version      1.0.0
-%define base_release      3
+%define base_release      4
 %define base_group        System Environment/Shells
 %define base_vendor       Red Hat, Inc.
 %define base_license      GPLv2 with exceptions
@@ -169,8 +169,8 @@
 rm -rf ${RPM_BUILD_ROOT}
 mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/doc/%{base_name}-%{base_version}
 cp -p LICENSE ${RPM_BUILD_ROOT}%{_datadir}/doc/%{base_name}-%{base_version}
-mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/selinux/targeted
-cp -p src/pki.pp ${RPM_BUILD_ROOT}%{_datadir}/selinux/targeted
+mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/selinux/modules
+cp -p src/pki.pp ${RPM_BUILD_ROOT}%{_datadir}/selinux/modules
 
 
 
@@ -209,7 +209,7 @@
 %saveFileContext targeted
 
 %post
-semodule -s targeted -i /usr/share/selinux/targeted/pki.pp 
+semodule -s targeted -i /usr/share/selinux/modules/pki.pp 
 %relabel targeted
 
 %preun
@@ -229,7 +229,7 @@
 
 %files
 %attr(-,root,root)     %{_datadir}/doc/%{base_name}-%{base_version}/*
-%attr(-,root,root)     %{_datadir}/selinux/targeted/pki.pp
+%attr(-,root,root)     %{_datadir}/selinux/modules/pki.pp
 
 
 
@@ -238,6 +238,8 @@
 ###############################################################################
 
 %changelog
+* Thu Jan 29 2009 Ade Lee <alee> 1.0.0.4
+- Bugzilla Bug #483134 Moved selinux to /usr/share/selinux/modules
 * Tue Jan 27 2009 Ade Lee <alee> 1.0.0-3
 - Bugzilla Bug #482738 - selinux changes required for cloning
 * Tue Jan 20 2009 Matthew Harmsen <mharmsen> 1.0.0-2

Comment 3 Matthew Harmsen 2009-01-29 22:08:25 UTC
Comment #1:  +mharmsen

Comment 5 Ade Lee 2009-01-29 22:14:25 UTC
[builder@dhcp231-124 selinux]$ svn ci -m "Bugzilla Bug #483134 Moved selinux to /usr/share/selinux/modules" 
Sending        selinux/pki-selinux.spec
Transmitting file data .
Committed revision 203.

Comment 7 Jenny Severance 2009-06-05 16:00:05 UTC
Looks like it is in a few locations?

[root@qe-blade-11 /]# find / -name pki.pp
/usr/share/selinux/targeted/pki.pp
/usr/share/selinux/modules/pki.pp
/etc/selinux/targeted/modules/active/modules/pki.pp
/etc/selinux/targeted/modules/previous/modules/pki.pp

Comment 8 Ade Lee 2009-06-05 18:22:41 UTC
That is ok.

the last two are artifacts from the installation process.  These are not used and can be ignored.

The first one is delivered by the selinux-policy-targeted rpm, but is not used/activated by that rpm.

A separate bug should be opened and assigned to dwalsh to remove this (unactivated) file.

Comment 9 Jenny Severance 2009-06-05 18:42:04 UTC
bug file and assigned to Dan https://bugzilla.redhat.com/show_bug.cgi?id=504353
Closing bug verified.


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