Giter Club home page Giter Club logo

softu2f-snap's Introduction

SoftU2F Snap logo

SoftU2F


SoftU2F in a snap - Provides a software-based Universal 2nd Factor (U2F) token for use by Firefox / Chrome

SoftU2F

Installation

Get it from the Snap Store

sudo snap install softu2f --classic

(Don't have snapd installed?)

Build it yourself

# clone this repo
git clone https://github.com/alexmurray/softu2f-snap
cd softu2f-snap

# install snapcraft and multipass tooling needed to build the snap in a reproducible way
sudo snap install snapcraft --classic
sudo snap install multipass --beta --classic

# build the snap
snapcraft

# install the snap (--dangerous signals this is not signed and hence not trusted)
sudo snap install ./softu2f*.snap --dangerous

# connect the appropriate interfaces
sudo snap connect softu2f:uhid
sudo snap connect softu2f:password-manager-service

# start the application part by launching SoftU2F from the application launcher

# Hack around the device permissions (this is temporary hack until we resolve issue #1)
sudo chmod 0666 /dev/$(dmesg | grep SoftU2F | tail -n1 | grep -o hidraw[0-9])

softu2f-snap's People

Contributors

alexmurray avatar

Stargazers

 avatar

Watchers

 avatar  avatar

softu2f-snap's Issues

/dev/hidraw device nodes are not able to be accessed by regular users

Currently the /dev/hidrawX device nodes which get created by the softu2f-system-daemon get created with 0600 permissions - therefore only root can access them and so the application is unusable out-of-the-box. The upstream project contains a udev based helper https://github.com/danstiner/rust-u2f/tree/master/linux/u2f-hidraw-policy to try and make this work but it might be possible to use normal udev rules such as those listed in the libu2f-udev debian package.

The current udevadm monitor output when running softu2f.softu2f-user-daemon (which then causes softu2f.softu2f-system-daemon to create the uhid device):

KERNEL[68085.651494] add      /devices/virtual/misc/uhid/0003:FFFF:FFFF.0014 (hid)
KERNEL[68085.651846] add      /devices/virtual/misc/uhid/0003:FFFF:FFFF.0014/hidraw/hidraw8 (hidraw)
KERNEL[68085.651884] bind     /devices/virtual/misc/uhid/0003:FFFF:FFFF.0014 (hid)
UDEV  [68085.653068] add      /devices/virtual/misc/uhid/0003:FFFF:FFFF.0014 (hid)
UDEV  [68085.655778] add      /devices/virtual/misc/uhid/0003:FFFF:FFFF.0014/hidraw/hidraw8 (hidraw)
UDEV  [68085.656498] bind     /devices/virtual/misc/uhid/0003:FFFF:FFFF.0014 (hid)

Which appears to show vendor and product id's of 0xFFFF which is unlikely to work for udev.

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.