Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294716 - sys-fs/ecryptfs-utils wrong suid bit
Summary: sys-fs/ecryptfs-utils wrong suid bit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-26 14:09 UTC by Renan Rangel
Modified: 2010-05-16 18:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renan Rangel 2009-11-26 14:09:51 UTC
Please, take a look at bug #268316 first. I can reproduce the setuid problem in =sys-fs/ecryptfs-utils-76 and =sys-fs/ecryptfs-utils-79 that now are available on portage. The symlinks seems to correct though.

Reproducible: Always

Steps to Reproduce:
1. ecryptfs-setup-private
Actual Results:  
$ ecryptfs-setup-private 
Enter your login passphrase: 
Enter your mount passphrase [leave blank to generate one]:

************************************************************************
YOU SHOULD RECORD YOUR MOUNT PASSPHRASE AND STORE IT IN A SAFE LOCATION.
  ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase
THIS WILL BE REQUIRED IF YOU NEED TO RECOVER YOUR DATA AT A LATER TIME.
************************************************************************


Done configuring.

Testing mount/write/umount/read...
mount: Operation not permitted
ERROR: Could


Expected Results:  
mount the encrypted private directory.

The suid bit should be set on /sbin/mount.ecryptfs_private instead of /sbin/mount.ecryptfs
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-27 19:45:11 UTC
This bug should be fixed in sys-fs/ecryptfs-utils-82.
Comment 2 Thomas 2010-05-16 06:59:33 UTC
It should?
Reopen please:

$ emerge -s ecryptfs-utils
Searching...    
[ Results for search key : ecryptfs-utils ]
[ Applications found : 1 ]

*  sys-fs/ecryptfs-utils
      Latest version available: 82
      Latest version installed: 82
      Size of files: 501 kB
      Homepage:      http://launchpad.net/ecryptfs
      Description:   eCryptfs userspace utilities
      License:       GPL-2

$ ecryptfs-mount-private
Enter your login passphrase:
mount: Operation not permitted

$ sudo chmod +s /usr/bin/ecryptfs-mount-private
$ ecryptfs-mount-private
$
Comment 3 Thomas 2010-05-16 07:02:02 UTC
Sorry, the chmod command (as root) was:
chmod +s /sbin/mount.ecryptfs_private
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-05-16 16:20:15 UTC
(In reply to comment #2 and comment #3)

Enable "suid" USE flag.
Comment 5 Thomas 2010-05-16 18:18:27 UTC
Oh, lol.
Sorry, I must be blind ;)

But I think that should be the normal state (not a USE flag or a USE flag called "nosuid" or something like that.