Bash scripts in ecryptfs encrypted partitions do not execute. Example: 1. Write file tp in an ecryptfs partition with #!/bin/bash echo OK 2. chmod a+x tp 3. Try to execute it ./tp bash: ./tp: /bin/bash: bad interpreter: Function not implemented Doing "bash tp" works as expected. Moving the file to a "normal" dir also works.
Created attachment 225343 [details] emerge --info
Created attachment 225345 [details] .config
Are you sure the filesystem is mounted with the exec option set?
(In reply to comment #3) > Are you sure the filesystem is mounted with the exec option set? > It is not. It used to work so far. Now I tried: 1. Changed the mount options in fstab to include exec and remounted. 2. I tried with a new dir like this mkdir tmp mount -tecryptfs tmp tmp -o exec put a script there and tried to execute it. Both failed.
failed the same way? can we see you /etc/fstab
(In reply to comment #5) > failed the same way? can we see you /etc/fstab > I'm sorry but this has nothing to do with fstab. As I said, you may try it using a k 2.6.33. Just do: 1. Go to any dir. 2. mkdir tmp 3. mount -t ecrypfs tmp tmp -o exec Answer the questions like crypt algorithm and password. 4. cd tmp 5. Write the following to for example tp #! /bin/bash echo OK 6. chmod u+x tp 7. ./tp This will show bash: ./tp: /bin/bash: bad interpreter: Function not implemented As you see, this does not depend on fstab. BTW, /etc/fstab was not changed from previous kernels.
ok then, please file this bug upstream at https://bugzilla.kernel.org and copy the url back here.
(In reply to comment #7) > ok then, please file this bug upstream at https://bugzilla.kernel.org and copy > the url back here. > As I saw there, the bug must be confirmed using a vanilla kernel. In the meanwhile I downgraded to k 2.6.31-r6 because of bugs #307671 and #311329. I'll be back when I got some time to check a k 2.6.33 vanilla or the bug somehow gets fixed in a new version.
After upgrading to kernel 2.6.33-r2 this problem went away. Now bash scripts work as expected.
works for user