~ecryptfs/ecryptfs/trunk

« back to all changes in this revision

Viewing changes to src/libecryptfs/sysfs.c

  • Committer: Dustin Kirkland
  • Date: 2009-02-13 15:57:24 UTC
  • Revision ID: kirkland@canonical.com-20090213155724-1q3qz2o0cbyimu9x
debian/ubuntu packaging

Initial checkin of the Debian/Ubuntu packaging

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * 02111-1307, USA.
18
18
 */
19
19
 
 
20
#include "config.h"
20
21
#include <sys/types.h>
21
22
#include <sys/stat.h>
22
23
#include <fcntl.h>
49
50
                        fclose(fp);
50
51
                        goto out;
51
52
                }
 
53
        rc = -EINVAL;
52
54
        fclose(fp);
53
 
        /* Default to /sys if not found in /etc/mtab */
54
 
        *mnt_size = strlen("/sys");
55
 
        if (mnt)
56
 
                memcpy(mnt, "/sys", strlen("/sys"));
57
 
        rc = 0;
58
55
out:
59
56
        return rc;
60
57
}
118
115
        char *str;
119
116
} ecryptfs_version_str_map[] = {
120
117
        {ECRYPTFS_VERSIONING_PASSPHRASE, "passphrase"},
121
 
        {ECRYPTFS_VERSIONING_PUBKEY, "Userspace daemon support"},
 
118
        {ECRYPTFS_VERSIONING_PUBKEY, "netlink daemon interface"},
122
119
        {ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH, "plaintext passthrough"},
123
120
        {ECRYPTFS_VERSIONING_POLICY, "policy"},
124
121
        {ECRYPTFS_VERSIONING_XATTR, "metadata in extended attribute"},
125
 
        {ECRYPTFS_VERSIONING_MISCDEV, "/dev/ecryptfs daemon interface"},
 
122
        {ECRYPTFS_VERSIONING_MISCDEV, "/dev/misc/ecryptfs daemon interface"},
126
123
        {ECRYPTFS_VERSIONING_HMAC, "hmac"},
127
124
        {ECRYPTFS_VERSIONING_FILENAME_ENCRYPTION, "filename encryption"},
128
125
        {ECRYPTFS_VERSIONING_GCM, "gcm cipher block chaining"},