Coder Social home page Coder Social logo

cu-cs3753-pa4's Introduction

CS3753 (Operating Systems)
Spring 2013
University of Colorado Boulder
Programming Assignment 4
A FUSE Encrypted File System
Public Code

By Andy Sayler - 2012
<www.andysayler.com>

Inspired by work from Chris Wailes - 2010
<[email protected]>

With help from:
Junho Ahn - 2012

Various files adopted from other exiting 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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.