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

freebsd / iocage / 12230153067
8%

Build:
DEFAULT BRANCH: master
Ran 09 Dec 2024 06:25AM UTC
Jobs 2
Files 57
Run time 1min
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

09 Dec 2024 06:25AM UTC coverage: 7.733% (-0.02%) from 7.748%
12230153067

push

github

web-flow
Fix hardening measure in release extraction (#55)

In freebsd/iocage#49 a hardening measure was imported from
truenas/iocage#358. This hardening measure limits what
can be extracted (location and attributes). It is implemented by
applying the 'tar' filter from tarfile. That filter does this[0]:

- Strip leading slashes (/ and os.sep) from filenames.
- Refuse to extract files with absolute paths (in case the name is
  absolute even after stripping slashes, e.g. C:/foo on Windows). This
  raises AbsolutePathError.
- Refuse to extract files whose absolute path (after following symlinks)
  would end up outside the destination. This raises
  OutsideDestinationError.
- Clear high mode bits (setuid, setgid, sticky) and group/other write
  bits (S_IWGRP | S_IWOTH).

While the first three modifications are desirable, the last one
damages the extracted release image, as things like sticky bits and
world writable files are required by a proper FreeBSD (jail)
installation.

Fixes freebsd/iocage#54

[0]https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter

58 of 3267 branches covered (1.78%)

Branch coverage included in aggregate %.

0 of 15 new or added lines in 1 file covered. (0.0%)

799 of 7815 relevant lines covered (10.22%)

0.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12230153067.1 09 Dec 2024 06:25AM UTC 0
8.12
2 12230153067.2 09 Dec 2024 06:26AM UTC 0
8.1
Source Files on build 12230153067
Detailed source file information is not available for this build.
  • Back to Repo
  • a5066c63 on github
  • Prev Build on (#12088703388)
  • Next Build on master (#12230354154)
  • Delete
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