Bug 441750

Summary: ia64 selinux: Properly install files and symlinks
Product: Red Hat Enterprise Linux 5 Reporter: Prarit Bhargava <prarit>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: dzickus, mkoci, mmalik, pjones
Target Milestone: rc   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 21:31:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 227711    

Description Prarit Bhargava 2008-04-09 19:17:42 UTC
Description of problem:

On ia64 systems the bootloader of choice is EFI.  EFI
requires a VFAT partition where kernel images, etc., are placed.

The current install command, "make install" executes /sbin/installkernel in
order to correctly place the bootimage, etc., in the INSTALL_PATH directory
(/sbin/installkernel is part of the mkinitrd package).

Currently, on ia64, the INSTALL_PATH directory is /boot.  This is incorrect,
and should be /boot/efi/efi/_vendor_specific_/ .  For example, in the case
of RedHat INSTALL_PATH should be /boot/efi/efi/redhat/.

The patch below modifies the /sbin/installkernel script so that

a) Creates LINK_PATH which indicates which directory the soft links should
be created in.  By default this is set to /boot, which is where the links
are currently being created.
b) Correctly creates the links in $LINK_PATH and not in $INSTALL_PATH, and
c) Creates the $KERNEL_NAME soft link once.

Verified on ia64 and x86_64.

I hope that we can get a mini-review and resolve any issues here so that I can
push this upstream.

Version-Release number of selected component (if applicable): Pretty much every
version...

Steps to Reproduce:
1.  execute make install in the kernel sources
  
Actual results:

vmlinuz, System.map are placed in /boot.

Expected results: vmlinuz, System.map should be in /boot/efi/efi/redhat


Additional info:

Need to add /boot/efi/efi/redhat/System*.map as a system_u:object_r:system_map_t:s0

Comment 1 Daniel Walsh 2008-04-21 13:37:44 UTC
Fixed in selinux-policy-2.4.6-133.fc9.noarch

Comment 2 RHEL Program Management 2008-06-02 20:08:35 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 6 errata-xmlrpc 2009-01-20 21:31:47 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0163.html