Bug 208278 - encfs doesn't work with selinux -- there is no file context for fuse
Summary: encfs doesn't work with selinux -- there is no file context for fuse
Keywords:
Status: CLOSED DUPLICATE of bug 189142
Alias: None
Product: Fedora
Classification: Fedora
Component: fuse
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-27 15:34 UTC by John Poelstra
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-31 14:03:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Poelstra 2006-09-27 15:34:35 UTC
Description of problem:

I can't move an outside directory into an encrypted encfs directory.

Version-Release number of selected component (if applicable):
fuse-encfs-1.3.1-2.fc5
libselinux-1.30.3-3.fc5
selinux-policy-2.3.7-2.fc5
selinux-policy-targeted-2.3.7-2.fc5
libselinux-python-1.30.3-4.fc5
libselinux-1.30.3-4.fc5


How reproducible:
Every time

Steps to Reproduce:
1. As nonpriv user... $ encfs ~/.cryptdir ~/cryptdir
2. $ mv foodir ~/cryptdir
3.
  
Actual results:
permission denied

Expected results:
success

Additional info:
From /var/log/messages

Sep 26 13:21:39 teflon kernel: audit(1159291299.977:77): avc:  denied  {
associate } for  pid=8543 comm="mv" name="foodir"
scontext=user_u:object_r:user_home_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Sep 26 13:29:10 teflon kernel: SELinux: initialized (dev fuse, type fuse), not
configured for labeling

Comment 1 Daniel Walsh 2006-09-28 00:08:06 UTC
Experimenting with this, it does not seem that fuse/encfs supports Extended
attributes.  I have set up SELinux policy to handle it, and have gotten extended
attributes assigned within a encfs directory, but when I remount the encfs it
looses the selinux_context, and goes back to unlabeled_t.

Comment 2 Peter Lemenkov 2006-10-31 14:03:28 UTC

*** This bug has been marked as a duplicate of 189142 ***


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