Coder Social home page Coder Social logo

rootless-containers / proot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from proot-me/proot

9.0 5.0 3.0 3.69 MB

Fork of proot for supporting `user.rootlesscontainers` xattr so as to support persistent `chown(2)`

Home Page: https://proot-me.github.io/

License: GNU General Public License v2.0

Shell 8.01% C 83.55% Makefile 2.15% Assembly 0.13% Objective-C 5.77% Python 0.40%
rootless-containers

proot's Introduction

proot's People

Contributors

akihirosuda avatar alkino avatar cedric-vincent avatar chewi avatar christophe-monat avatar ferrantidenis avatar ghalebp avatar guillon avatar ivoire avatar jopasserat avatar jorge-lip avatar mgoltzsche avatar mickael-guene avatar pelya avatar robineclaire avatar vincenthage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

proot's Issues

`chown(42, 43); chown(44, -1)` produces wrong result

Moved from rootless-containers/runrootless#19


expected result: 44:43
actual result: 44:0

#include <stdio.h>
#include <unistd.h>

int main(int ac, char *av[]){
  if (ac != 2) {
    fprintf(stderr, "usage: %s FILE\n", av[0]);
    return 1;
  }
  const char *path = av[1];
  if (chown(path, 42, 43) < 0) {
    perror("chown(42, 43)");
    return 1;
  }
  if (chown(path, 44, -1) < 0) {
    perror("chown(44, -1)");
    return 1;
  }
  return 0;
}

Support building on Alpine

FROM alpine:3.7
RUN apk add --no-cache alpine-sdk linux-headers bsd-compat-headers libexecinfo-dev talloc-dev protobuf-c-dev 
RUN git clone https://github.com/rootless-containers/PRoot.git \
  && cd PRoot \
  && git checkout 081bb63955eb4378e53cf4d0eb0ed0d3222bf66e \
  && cd src \
  && make && mv proot / && make clean

Failing:

make: [GNUmakefile:135: .check_process_vm] Error 1 (ignored)
make: [GNUmakefile:135: .check_seccomp_filter] Error 1 (ignored)
  GEN   build.h
  CC    cli/cli.o
In file included from ./cli/cli.h:7:0,
                 from ./cli/cli.c:36:
./tracee/tracee.h:150:24: error: field 'restart_how' has incomplete type
  enum __ptrace_request restart_how;
                        ^~~~~~~~~~~
make: *** [GNUmakefile:179: cli/cli.o] Error 1

apt/dpkg fails intermittently, when seccomp acceleration is enabled

Moved from rootless-containers/runrootless#4

root@runc:~# dpkg-deb --fsys-tarfile /var/cache/apt/archives/htop_2.0.1-1ubuntu1_amd64.deb > /dev/null 
dpkg-deb: error: subprocess <decompress> was killed by signal (Segmentation fault)
root@runc:~# dpkg-deb --fsys-tarfile /var/cache/apt/archives/htop_2.0.1-1ubuntu1_amd64.deb > /dev/null 
root@runc:~# dpkg-deb --fsys-tarfile /var/cache/apt/archives/htop_2.0.1-1ubuntu1_amd64.deb > /dev/null 
root@runc:~# dpkg-deb --fsys-tarfile /var/cache/apt/archives/htop_2.0.1-1ubuntu1_amd64.deb > /dev/null 
dpkg-deb: error: subprocess <decompress> was killed by signal (Segmentation fault)

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.