Bug 188217

Summary: CFS directory doesn't cattach with correct password on x86_64
Product: [Fedora] Fedora Reporter: Paul Wayper <paulway>
Component: cfsAssignee: Enrico Scholz <rh-bugzilla>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-04 12:16:08 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:
Attachments:
Description Flags
SELinux policy to mount the local NFS socket for CFS. none

Description Paul Wayper 2006-04-07 02:16:50 UTC
Description of problem:
CFS directories that are newly created, and ones that have previously worked on
i386 systems, do not unlock using the cattach command even when given the
correct password.

Version-Release number of selected component (if applicable):
1.4.1-7.fc5 and earlier

How reproducible:
Always on x86_64 systems

Steps to Reproduce:
1. Make a new CFS directory: 'cmkdir test'
2. Use a guaranteed reproducible phrase - e.g. 'echo abcdefghijklmnopqrst' and
use copy and paste in the terminal - to supply the same passphrase twice to the
cmkdir command.
3. Try attaching to this CFS directory: 'cattach test'

Actual results:
'cattach: incorrect passphrase'

Expected results:
No error from cattach and test directory shows up in secure mount directory
(e.g. /mnt/crypt).

Additional info:
I've also tried this with directories I've copied from my previous Athlon 32-bit
system; they won't cattach on the x86_64 system but, when the entire CFS
directory is copied back to the i386 system, they are still accessible.  In this
way this is similar to bug 173037
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173037)

Comment 1 Enrico Scholz 2006-06-03 12:25:25 UTC
cfs was/is written in K&R C which does not support prototypes. On AMD64 which
has sizeof(int) != sizeof(void *), this will cause every kind of problems.

I added a patch to the -devel branch of Fedora Extras which should fix these
issues. Can you test this version please? I do not have an AMD64 system where I
can test it.

[Because the patch is non-trivial, it is for -devel only ATM. So you have
probably to rebuild the package for FC5]

Comment 2 Paul Wayper 2006-06-05 02:17:52 UTC
Is this the 1.4.1-9.fc6 package in the FC5 extras development repository?  I've
tried that and it still has the same error.  If not, could you give me a bit
more information about what to download?  I'm not as familiar with the Extras
development branch as you are, sorry :-)

Also, if there's a way to turn on debugging or something that allows me to give
you more information about what's going on on my system, I'd be happy to oblige.

Comment 3 Paul Wayper 2006-06-05 02:20:24 UTC
Created attachment 130467 [details]
SELinux policy to mount the local NFS socket for CFS.

Comment 4 Enrico Scholz 2007-02-04 12:16:08 UTC
sorry, closing bug as wont-fix. CFS is discontinued.