Bug 500824 - Possible missing runtime dependencies for `ecryptfs-setup-swap'
Summary: Possible missing runtime dependencies for `ecryptfs-setup-swap'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ecryptfs-utils
Version: 5.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-14 12:36 UTC by Michal Nowak
Modified: 2013-03-08 02:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:56:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:1307 0 normal SHIPPED_LIVE Low: ecryptfs-utils security, bug fix, and enhancement update 2009-09-01 10:20:43 UTC

Description Michal Nowak 2009-05-14 12:36:30 UTC
Description of problem:

/usr/bin/ecryptfs-setup-swap utilizes 

* /sbin/cryptsetup (cryptsetup-luks pkg) via

    # Ensure that cryptsetup is available
    [ -x /sbin/cryptsetup ] || error "Please install 'cryptsetup'"

(a little bit strange is that `cryptsetup' is never called afterwards)

* /sbin/dmsetup (device-mapper pkg) via

    # Check if this this swap space is already setup for encryption
    if /sbin/dmsetup table "$swap" | grep -qs " crypt " 2>/dev/null; then
            info "[$swap] already appears to be encrypted."
            exit 0
    else
    [...]

but does not depend on them (= rpm dependency). It might be a good idea to have explicit dependency in spec file.

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

ecryptfs-utils-75-1.el5

Comment 1 Michal Hlavinka 2009-05-18 09:33:26 UTC
yum remove device-mapper #contains dmsetup
....
-> dependency would remove coreutils

but this can be easily added to ecryptfs-utils

* /sbin/cryptsetup (cryptsetup-luks pkg) via
(a little bit strange is that `cryptsetup' is never called afterwards)

it's not called but it's used later with dmsetup if you want to encrypt device

requiring cryptsetup seem little bit odd from my POV, but since it'd be "always" present (hal requires cryptsetup), it makes no difference.

Comment 2 Michal Hlavinka 2009-05-18 14:33:10 UTC
only minor change in spec file

Comment 7 errata-xmlrpc 2009-09-02 09:56:57 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/RHSA-2009-1307.html


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