Coder Social home page Coder Social logo

Does this run from VM? about autochrome HOT 2 CLOSED

nccgroup avatar nccgroup commented on June 11, 2024
Does this run from VM?

from autochrome.

Comments (2)

RyanKoppenhaver-NCC avatar RyanKoppenhaver-NCC commented on June 11, 2024

I was able to reproduce this using both root and a regular user account on a Kali VM.

As a workaround, you can call chrome-wrapper with the --no-sandbox argument on the command line, or add that value to the OPTS array in /root/.local/autochrome/chrome

Looking at the Chromium source here, the error occurs when neither the namespace or suid sandboxes are available. (The suid sandbox seems to be mostly deprecated, so the namespace sandbox not working is the issue.)

I think the failing bit might be here, but I'll have to dig a bit more to see if there's a better way to fix this than just disabling the sandbox entirely.

from autochrome.

RyanKoppenhaver-NCC avatar RyanKoppenhaver-NCC commented on June 11, 2024

Looks like running sysctl kernel.unprivileged_userns_clone=1 as root will allow the namespace sandbox to work, though chromium still refuses to run as root unless --no-sandbox is set.

My tentative plan for a fix is:

  1. If Autochrome is run as root, warn the user but continue
  2. In Autochrome, check for unprivileged_userns_clone = 0 and prompt the user to set it to 1.
  3. In the wrapper, use --no-sandbox if the user is root or unprivileged_userns_clone is 0.

from autochrome.

Related Issues (20)

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.