• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

proot-me / PRoot / 195 / 1
76%
master: 0%

Build:
Build:
LAST BUILD BRANCH: travis
DEFAULT BRANCH: master
Ran 23 Feb 2015 04:44PM UTC
Files 93
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Feb 2015 04:17PM UTC coverage: 76.445%. First build
195.1

push

travis-ci

cedric-vincent
fake_id0: Make sudo work under PRoot.

The program sudo changes its effective uid before checking that the
owner of /etc/sudoers is root.  As a consequence, the faked owner of
this file -- and of all other files owned by the real user -- is the
new effective uid.  Sadly, this makes sudo aborts because the owner of
/etc/sudoers is not root.  A workaround is to use the save uid as the
faked owner of all files owned by the real user.

This commit was tested this way:

    $ ./src/proot -i $(id -u):$(id -g) -R archlinux/root.x86_64/
    $ curl -o PKGBUILD https://aur.archlinux.org/packages/ca/care-static/PKGBUILD
    $ makepkg -i
    ==> WARNING: A package has already been built, installing existing package...
    ==> Installing package care-static with pacman -U...
    loading packages...
    resolving dependencies...
    looking for conflicting packages...

    Packages (1) care-static-2.2.1-4

    Total Installed Size:  1.31 MiB

    :: Proceed with installation? [Y/n] y
    (1/1) checking keys in keyring       [###############################################] 100%
    (1/1) checking package integrity     [###############################################] 100%
    (1/1) loading package files          [###############################################] 100%
    (1/1) checking for file conflicts    [###############################################] 100%
    (1/1) checking available disk space  [###############################################] 100%
    (1/1) installing care-static         [###############################################] 100%

where the guest rootfs was created and configured this way:

    $ wget https://mirrors.kernel.org/archlinux/iso/2015.02.01/archlinux-bootstrap-2015.02.01-x86_64.tar.gz
    $ mkdir archlinux
    $ tar -C archlinux -xf archlinux-bootstrap-2015.02.01-x86_64.tar.gz
    $ rm archlinux/root.x86_64/etc/mtab
    $ echo 'Server = http://mir.archlinux.fr/$repo/os/$arch' > archlinux/root.x86_64/etc/pacman.d/mirrorlist
    $ expor... (continued)

3015 of 3944 relevant lines covered (76.45%)

133949.6 hits per line

Source Files on job 195.1
  • Tree
  • List 0
  • Changed 19
  • Source Changed 1
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 195
  • Travis Job 195.1
  • cdb926ec on github
  • Prev Job for on juju-issue-59-2 (#194.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc