passphrase_passwd_fd does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
Hi,
I tried to mount a directory using
echo "passphrase_
(<> stands for removed parts)
Syslog reported
<> mount.ecryptfs: ecryptfs_
<> mount.ecryptfs: parse_options_file: mmap failed on fd [0]; rc = [-22]
<> mount.ecryptfs: tf_pass_file: Error parsing file for passwd; rc = [-22]
Then I had a look at ecryptfs-utils and discovered that the problem was in cmd_ln_parser.c. The call file_size = filestat.st_size returned 0 on my linux system since the file descriptor was a pipe.
I fixed it in the attached patch. I replaced mmap by read (until EOF). Please review the patch and tell me your opinion.
Greetings
Stephan
Related branches
Changed in ecryptfs: | |
status: | Fix Committed → Fix Released |
Bump