Coder Social home page Coder Social logo

subgraph / gnome-shell-extension-ozshell Goto Github PK

View Code? Open in Web Editor NEW
6.0 9.0 8.0 4.72 MB

GNOME Shell extension for interfacing with the OZ application sandboxing framework

Home Page: https://subgraph.com/sgos/

License: GNU General Public License v3.0

Shell 0.99% JavaScript 84.76% CSS 0.23% Makefile 4.46% M4 9.56%
gnome gnome-shell gnome-shell-extension oz subgraph sgos

gnome-shell-extension-ozshell's Introduction

OZ Shell Gnome Extension

This is a Gnome Shell extension for interfacing with the OZ application sandboxing framework.

It allows viewing the running sandboxes, adding and removing user files into the sandboxes, terminating them, and opening a shell terminal inside the sandbox.

Demo

OZ Shell Extension Evince Sandbox Demo

Installation

Prerequisites

You need to have gjs installed , so if it is not already:

apt-get install gjs

If you are running grsecurity/pax you will require to disable the mprotect pax flag on the gjs executable as with most JIT.

If you would like to get rid of this dependency you could write a small python, c, or golang program to replace the small Gtk filechooser in openFiles.js.

Building

Manually

If you do not wish to build it on your own you can simply download the lastest zip release and skip this step.

# Install the build dependencies:
sudo apt-get install libglib2.0-dev gnome-common
# Build it:
git clone https://github.com/subgraph/gnome-shell-extension-ozshell.git
cd gnome-shell-extension-ozshell
./autogen.sh
./configure --prefix=/usr
make
# To install for your user:
make local-install
# To install globally:
sudo make install
# To generate a distribution zip:
make zip

As a debian package

git clone -b debian https://github.com/subgraph/gnome-shell-extension-ozshell.git
cd gnome-shell-extension-ozshell
gbp buildpackage -us -uc
sudo dpkg -i ../build-area/gnome-shell-extension-ozshell_<version>_all.deb

Installing

You can now enable the applet: go into gnome-tweak-tool; you may require to reload gnome-shell first (<alt-f2> enter r and press <enter> or pkill -SIGHUP gnome-shell).

Formalities

Caveats

Currently the refresh is done by clearing the whole menu and rebuilding it. This is not only inefficient, but it means that the applet will not refresh if the menu is open. This should be fixed in the future by a) going through the items and individually removing/inserting them, b) the addition of push events (will require additional components to be added to oz-daemon).

Translation & Credits

gnome-shell-extension-ozshell's People

Contributors

leif avatar xsmurf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnome-shell-extension-ozshell's Issues

Allow adding entire directories

Right now only files can be added to the dynamic whitelist from the extension. It should be possible to add directories as well since this is the only way to actually exfiltrate files.

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.