-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathREADME
117 lines (86 loc) · 3.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
CS3753 (Operating Systems)
Spring 2012
University of Colorado Boulder
Programming Assignment 5
A FUSE Encrypted File System
Public Code
By Andy Sayler - 2012
<www.andysayler.com>
Inspired by work from Chris Wailes - 2010
With help from:
Junho Ahn - 2012
Various files adopted from other existing work.
See file comments for specific details and references.
---Dependencies---
fuse-utils
openssl
attr
attr-dev
libfuse-dev
libssl1.0.0 or libssl0.9.8
libssl-dev
Note: To use extended attributes (xattr) on EXT filesystems,
you must add the 'user_xattr' mount option to the
mount options of any mounts on which you intend to use
extended attributes. Failure to so may result in an error
when trying to set, get, or remove xattr values.
---Folders---
handout - Assignment description and documentation
---Files---
Makefile - GNU makefile to build all relevant code
README - This file
fusehello.c - Basic "Hello World" FUSE example
fusexmp.c - Basic FUSE mirrored filesystem example (mirrors /)
xattr-util.c - Basic Extended Attribute manipulation program
aes-crypt-util.c - Basic AES encryption program using aes-crypt library
aes-crypt.h - Basic AES file encryption library interface
aes-crypt.c - Basic AES file encryption library implementation
---Executables---
fusehello - Mounting executable for "Hello World" FUSE filesystem example
fusexmp - Mounting executable for root (\) mirror FUSE filesystem example
xattr-util - A simple program for manipulating extended attributes
aes-crypt-util - A simple program for encrypting, decrypting, or copying files
---Documentation---
handout/pa5.pdf - Assignment Instructions and Tips
http://youtu.be/VrMi6RaUNDs - Assignment Explanation Video 1
---Examples---
***Building***
Build All:
make
Build Fuse Examples and Utilities:
make fuse-examples
Build xattr Examples and Utilities:
make xattr-examples
Build OpenSSL/AES Examples and Utilities:
make openssl-examples
Clean:
make clean
***FUSE Examples***
Mount fusehello on new directory
mkdir <Mount Point>
./fusehello <Mount Point>
Mount fusehello in Debug Mode on existing empty directory
./fusehello -d <Mount Point>
Mount fusexmp on existing directory and list (ls) mirrored root directory (/)
./fusexmp <Mount Point>
ls <Mount Point>
Unmount a FUSE filesystem
fusermount -u <Mount Point>
***OpenSSL Examples***
Copy FileA to FileB:
./aes-crypt-util -c <FileA Path> <FileB Path>
Encrypt FileA to FileB using Passphrase:
./aes-crypt-util -e <Passphrase> <FileA Path> <FileB Path>
Decrypt FileA to FileB using Passphrase:
(Note: error if FileA not encrypted with aes-crypt.h or if passphrase is wrong)
./aes-crypt-util -d <Passphrase> <FileA Path> <FileB Path>
***xattr Examples***
List attributes set on a file
./xattr-util -l <File Path>
Set/Write attribute on a file
./xattr-util -s <Attr Name> <Attr Value> <File Path>
Get/Read attribute from a file
./xattr-util -g <Attr Name> <File Path>
Remove attribute from a file
./xattr-util -r <Attr Name> <File Path>