Bug 1363723

Summary: Files treated as executable
Product: [Fedora] Fedora Reporter: jeremy9856
Component: fuse-encfsAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: michel, vascom2
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: fuse-encfs-1.8.1-2.fc24 fuse-encfs-1.8.1-2.fc23 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-12 19:29:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jeremy9856 2016-08-03 12:26:55 UTC
Hello,

I'm on Fedora 24 and the text files in my encfs folder are always treated as executable. I thought it was a Nautilus bug because Nautilus don't show them as executable but the Nautilus devs says it's an encfs problem (config / bug ?) after I provided some gvfs-info and stat data as you can see in the bug report for Nautilus (however Nautilus seem to have a little bug for not showing executable whereas stat and gvfs-info show it is).

https://bugzilla.gnome.org/show_bug.cgi?id=769181

Is there a bug or a config problem for encfs ? In doubt I also open an issue against encfs upstream

https://github.com/vgough/encfs/issues/190

Thanks !

Comment 1 jeremy9856 2016-08-03 12:33:40 UTC
I experience the problem on text files but I guess they are all marked as executable.

Comment 2 Vasiliy Glazov 2016-08-03 12:37:49 UTC
Can you give simple steps to reproduce this problem?

If you just run
touch file.txt
in encfs directory then file.txt has exec bit?

Show output of command: 
mount | grep encfs
ls -la <encfs_directory>

Comment 3 jeremy9856 2016-08-03 13:05:02 UTC
(In reply to Vasiliy Glazov from comment #2)
> Can you give simple steps to reproduce this problem?

Of course everything you need.

> If you just run
> touch file.txt
> in encfs directory then file.txt has exec bit?

It don't seem so :

  Fichier : 'test.txt'
   Taille : 0         	Blocs : 0          Blocs d'E/S : 4096   fichier vide
Périphérique : 2ch/44d	Inœud : 7604645     Liens : 1
Accès : (0664/-rw-rw-r--)  UID : ( 1000/  jeremy)   GID : ( 1000/  jeremy)
 Accès : 2016-08-03 14:57:43.433772000 +0200
Modif. : 2016-08-03 14:57:43.433772000 +0200
Changt : 2016-08-03 14:57:43.433772956 +0200
  Créé : -

Here is the stat of a file already in encfs folder:

stat notes.txt 
  Fichier : 'notes.txt'
   Taille : 116       	Blocs : 8          Blocs d'E/S : 4096   fichier
Périphérique : 2ch/44d	Inœud : 7733358     Liens : 1
Accès : (0644/-rw-r--r--)  UID : ( 1000/  jeremy)   GID : ( 1000/  jeremy)
 Accès : 2016-07-08 10:13:57.134234000 +0200
Modif. : 2015-01-19 04:34:46.000000000 +0100
Changt : 2016-07-25 15:39:33.944590126 +0200
  Créé : -

Nautilus treat both files as executable. To remember here is the stat of the encfs folder:

  Fichier : '/media/Data/Decrypted/'
   Taille : 4096      	Blocs : 8          Blocs d'E/S : 4096   répertoire
Périphérique : 2ch/44d	Inœud : 7602177     Liens : 5
Accès : (0700/drwx------)  UID : ( 1000/  jeremy)   GID : ( 1000/  jeremy)
 Accès : 2016-07-08 13:13:10.069490085 +0200
Modif. : 2016-08-03 14:59:09.161554253 +0200
Changt : 2016-08-03 14:59:09.161554253 +0200
  Créé : -


> Show output of command: 
> mount | grep encfs

encfs on /media/Data/Decrypted type fuse.encfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)


> ls -la <encfs_directory>

total 20
drwx------   5 jeremy jeremy 4096  3 août  14:59 .
drwxr-xr-x. 17 jeremy jeremy 4096 25 juil. 16:11 ..
drwxrwxr-x   4 jeremy jeremy 4096 18 juil. 13:47 Browsers
drwxr-xr-x   4 jeremy jeremy 4096 26 juil. 17:07 Documents
drwx------   5 jeremy jeremy 4096  9 juil. 11:10 .Trash-1000

Comment 4 Vasiliy Glazov 2016-08-03 13:12:04 UTC
If in console files are not executable then it is Nautilus problem.

Comment 5 jeremy9856 2016-08-03 13:21:01 UTC
That what I guessed with these new infos. I will see with Nautilus guys and close this as soon as they confirm.

Thanks !

Comment 6 jeremy9856 2016-08-03 16:12:50 UTC
The problem don't happen in master and we are on 1.8.1. I quote Christian Kellner that found the solution

> Doesn't happen with encfs master (what will be 1.9): "access::can-execute: FALSE" Probably related to changes in encfs and the passing of "-o default_permission" to FUSE.

https://bugzilla.gnome.org/show_bug.cgi?id=769181#c7

Maybe we could backport the right commit or update encfs ?

Thanks !

Comment 7 Vasiliy Glazov 2016-08-03 16:18:15 UTC
If you find that commit I can apply patch else it would be better wait 1.9.0 release.

Comment 10 jeremy9856 2016-08-04 08:00:01 UTC
That work well. Thanks !

Comment 11 Fedora Update System 2016-08-04 08:36:37 UTC
fuse-encfs-1.8.1-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-64d1842d0a

Comment 12 Fedora Update System 2016-08-04 08:36:43 UTC
fuse-encfs-1.8.1-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5107a56f0d

Comment 13 Fedora Update System 2016-08-04 23:51:20 UTC
fuse-encfs-1.8.1-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5107a56f0d

Comment 14 Fedora Update System 2016-08-04 23:52:26 UTC
fuse-encfs-1.8.1-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-64d1842d0a

Comment 15 Fedora Update System 2016-08-12 19:29:42 UTC
fuse-encfs-1.8.1-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2016-08-13 02:50:16 UTC
fuse-encfs-1.8.1-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.