Compare commits

...

40 Commits
v1.0 ... main

Author SHA1 Message Date
Motiejus Jakštys 6400df9612 Makefile: make VSNHASH, LDFLAGS overridable 2024-05-12 07:33:29 +03:00
Motiejus Jakštys 5aa28f74ee shell scripts: shfmt 2024-05-10 16:10:29 +03:00
Motiejus Jakštys e393a36a65 update README w.r.t. integration tests 2024-05-10 16:00:49 +03:00
Motiejus Jakštys 294aaa2bd7 add integration tests 2024-05-10 15:59:04 +03:00
Motiejus Jakštys da1fb2ae17 Makefile: fix lint rules 2024-05-10 14:57:10 +03:00
Motiejus Jakštys 8a2713bd3b main.go: fix Sprintf -> Fprintf 2024-05-10 14:50:29 +03:00
Motiejus Jakštys 5b65b37d81 release: do not sign 2024-05-10 14:49:45 +03:00
Motiejus Jakštys d806f056f3 release: fix shebang 2024-05-10 14:49:20 +03:00
Motiejus Jakštys ec89ce64bd README: project is somewhat maintained again 2024-05-10 14:48:16 +03:00
Motiejus Jakštys 91b3730f0c main: errors to stderr 2024-05-10 14:38:29 +03:00
Motiejus Jakštys db45af6b9d add deprecation notice 2024-02-09 10:49:27 +02:00
Motiejus Jakštys f0bebff6a1 README: remove Changelog 2023-05-19 15:06:50 +03:00
Motiejus Jakštys e6d1a95c02 upgrade to go 1.20
use errors.Join
2023-05-19 15:05:21 +03:00
Motiejus Jakštys 725fb5679b move to git.jakstys.lt 2023-04-13 11:30:37 +03:00
Motiejus Jakštys 8f80dc49f5 re-license to apache2 2023-02-09 10:23:35 +02:00
Motiejus Jakštys 6d24d0da7a replace io/ioutil with os 2023-01-03 16:00:34 +02:00
Motiejus Jakštys d3efb410d0 make: fix clean target 2022-08-29 18:02:22 +03:00
Motiejus Jakštys 1c46fb8617 release: a better changelog 2022-06-09 14:28:39 +03:00
Motiejus Jakštys 4408a9e005 rootfs: remove ./ prefix from filenames
I've seen a container (private one) whose filenames start with ./, but
the layer name does not have the prefix, causing undocker to fail.

Let's always normalize the names to not have the prefix.
2022-06-09 14:22:21 +03:00
Motiejus Jakštys 41baf180a3 [ci] merge test and lint steps to one 2021-09-29 14:45:53 +03:00
Motiejus Jakštys 4754869190 [ci] replace tee with awk 2021-09-29 14:43:33 +03:00
Motiejus Jakštys ec62b65ecd [ci] add a usage step 2021-09-29 14:38:31 +03:00
Motiejus Jakštys 0ff72b99d9 remove unnecessary support for prebuilt binaries
the users will know how to build the binaries themselves.
2021-09-29 14:30:18 +03:00
Motiejus Jakštys e4c0d4d72a remove references to 'official' binaries 2021-09-27 19:08:04 +03:00
Motiejus Jakštys eab7c3c1ef [release] fix nullglob issue 2021-09-06 15:36:50 +03:00
Motiejus Jakštys ec61d24fd4 [nit] Makefile style 2021-09-06 09:01:05 +03:00
Motiejus Jakštys d3933efd74 Update README
- add communication section
- remove systemd-nspawn section
2021-09-06 08:25:11 +03:00
Motiejus Jakštys a265915b21 Shellcheck release 2021-09-01 09:41:00 +03:00
Motiejus Jakštys 8c00e74df9 Update release script
- fix paths of sha256sum
- check for old artifacts before doing the release
2021-09-01 09:38:13 +03:00
Motiejus Jakštys 5e297827d3 update README with more actionable examples 2021-09-01 09:32:26 +03:00
Motiejus Jakštys dc03b29e6e Revert "add WithFilePrefix"
This reverts commit 436a866f5d.

This is not a good place for such auxiliary functionality; will be moved
elsewhere.
2021-08-29 18:40:11 +03:00
Motiejus Jakštys f02af98ac5 nit: shorter defer body 2021-08-29 18:39:43 +03:00
Motiejus Jakštys cca579d218 update Makefile and default target
Adds a `sha256sum-$(VSN).txt`. For easier CI.
2021-08-29 18:23:49 +03:00
Motiejus Jakštys 436a866f5d add WithFilePrefix
This adds an option to prefix every file path with a given string.
2021-08-29 16:55:32 +03:00
Motiejus Jakštys 71aab65b75 version sha256sum files 2021-08-29 07:49:32 +03:00
Motiejus Jakštys 984752b812 remove unused archs
I am not using nor need arm64 and windows. Removing these from the
Makefile. If you see this message and feel like they should be added
back (or different archs), ping me.
2021-08-25 08:57:10 +03:00
Motiejus Jakštys 4568429a69 main.go: remove file if on Flatten(..) failure
When a Flatten() fails, the main program used to leave an incomplete
file (usually zero-length). Now it will clean itself up on failure.
2021-08-25 08:49:30 +03:00
Motiejus Jakštys 6f40bc91be simplify linter 2021-08-24 17:23:31 +03:00
Motiejus Jakštys 63d171007e shellcheck 2021-08-24 16:44:58 +03:00
Motiejus Jakštys 5d4d6410da remove windows/arm64
not available on go 1.16
2021-08-24 14:50:30 +03:00
12 changed files with 823 additions and 177 deletions

View File

@ -1,19 +0,0 @@
image: alpine/edge
packages:
- go
- git
- make
sources:
- https://git.sr.ht/~motiejus/undocker
tasks:
- setup: |
go install honnef.co/go/tools/cmd/staticcheck@latest
- test: |
make -C undocker coverage.html
- lint: |
make -C undocker -O -j$(nproc) lint
- binaries: |
make -C undocker -O -j$(nproc) sha256sum.txt
cat undocker/sha256sum.txt
artifacts:
- undocker/coverage.html

6
.gitignore vendored
View File

@ -1,3 +1,5 @@
/undocker-*
/undocker
coverage.html
sha256sum.txt*
t/*.tar
t/*-got.txt

215
LICENSE
View File

@ -1,19 +1,202 @@
Copyright (c) 2021 Motiejus Jakštys
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2021 Motiejus Jakštys
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,58 +1,54 @@
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
GOBIN = $(shell go env GOPATH)/bin/
GOOSARCHS = $(sort \
darwin/amd64 \
darwin/arm64 \
linux/amd64 \
linux/arm64 \
windows/amd64/.exe \
windows/arm64/.exe)
SCRIPTS := $(shell awk '/#!\/usr\/bin\/env (ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files))
GODEPS := $(shell git ls-files '*.go' go.mod go.sum)
VSN ?= $(shell git describe --dirty)
VSNHASH = $(shell git rev-parse --verify HEAD)
LDFLAGS = -ldflags "-X main.Version=$(VSN) -X main.VersionHash=$(VSNHASH)"
VSNHASH ?= $(shell git rev-parse --verify HEAD)
LDFLAGS ?= -ldflags "-X main.Version=$(VSN) -X main.VersionHash=$(VSNHASH)"
undocker: ## builds binary for the current architecture
go build $(LDFLAGS) -o $@
.PHONY: test
test:
go test -race -cover ./...
define undockertarget
UNDOCKERS += undocker-$(1)-$(2)-$(VSN)$(firstword $(3))
undocker-$(1)-$(2)-$(VSN)$(firstword $(3)): $(GODEPS)
CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build $(LDFLAGS) -o $$@
endef
$(foreach goosarch,$(GOOSARCHS),\
$(eval $(call undockertarget,$(word 1,$(subst /, ,$(goosarch))),$(word 2,$(subst /, ,$(goosarch))),$(word 3,$(subst /, ,$(goosarch))))))
.PHONY: all
all: $(UNDOCKERS)
test: coverage.out
.PHONY: lint
lint: vet staticcheck
.PHONY: vet
vet:
lint:
go vet ./...
.PHONY: staticcheck
staticcheck:
$(GOBIN)staticcheck -f stylish ./...
staticcheck -f stylish ./...
shellcheck $(SCRIPTS)
shfmt $(SCRIPTS)
git diff --exit-code
.INTERMEDIATE: coverage.out
coverage.out: $(GODEPS)
go test -coverprofile $@ ./...
go test -race -cover -coverprofile $@ ./...
coverage.html: coverage.out
go tool cover -html=$< -o $@
sha256sum.txt: $(UNDOCKERS)
sha256sum $(UNDOCKERS) > $@
sha256sum.txt.asc: sha256sum.txt
gpg --clearsign $<
.PHONY: clean
clean:
rm -f undocker-*-v* coverage.html sha256sum.txt sha256sum.txt.asc
rm -f undocker coverage.html
TEST_IMAGES = busybox-glibc_65ad0d468eb1
.PHONY: test-integration
test-integration: $(foreach IMG,$(TEST_IMAGES),test-integration-$(IMG))
ifeq ($(shell uname -s),Darwin)
TAR := gtar
else
TAR := tar
endif
define TEST_RULES
.PHONY: test-integration-$(IMG)
test-integration-$(IMG): undocker t/$(IMG).tar t/$(IMG).txt
./undocker t/$(IMG).tar - | $$(TAR) -tv > t/$(IMG)-got.txt
diff -u t/$(IMG).txt t/$(IMG)-got.txt
@echo "$(IMG) success"
t/$(IMG).tar:
wget -O $$@ https://git.jakstys.lt/api/packages/motiejus/generic/undocker-tests/0/$(IMG).tar
endef
$(foreach IMG,$(TEST_IMAGES),$(eval $(TEST_RULES)))

100
README.md
View File

@ -1,11 +1,19 @@
[![godocs.io](http://godocs.io/git.sr.ht/~motiejus/undocker?status.svg)](http://godocs.io/git.sr.ht/~motiejus/undocker)
[![builds.sr.ht status](https://builds.sr.ht/~motiejus/undocker.svg)](https://builds.sr.ht/~motiejus/undocker?)
[![godocs.io](http://godocs.io/git.jakstys.lt/motiejus/undocker?status.svg)](http://godocs.io/git.jakstys.lt/motiejus/undocker)
Undocker
--------
Converts a Docker image (a bunch of layers) to a flattened "rootfs" tarball.
Project Status
--------------
The project was announced to be deprecated in the beginning of 2024, but the
maintainer has an interest in Docker ecosystem again, thus will maintain it
somewhat starting at mid-2024.
The author has some significant changes in mind, but the timeline is unknown.
Why?
----
@ -18,7 +26,19 @@ and application isolation ("container") runtimes: once the docker image is
extracted, it can be run with old-fashioned tools: lxc, systemd-nspawn,
systemd, FreeBSD Jails, and many others.
Undocker has no dependencies outside Golang stdlib.
Installation
------------
Build it like this for the "current" platform:
```
$ make undocker
```
`make -B` will print the extra flags (`-X <...>`) for cross-compiling with
other archs. It's all `go build <...>` in the back, and depends only on Go's
compiler and stdlib.
Usage: convert docker image to rootfs
-------------------------------------
@ -27,79 +47,69 @@ Download `busybox` docker image from docker hub and convert it to a rootfs:
```
$ skopeo copy docker://docker.io/busybox:latest docker-archive:busybox.tar
$ undocker busybox.tar - | tar -tv | head -10
drwxr-xr-x 0/0 0 2021-05-17 22:07 bin/
-rwxr-xr-x 0/0 1149184 2021-05-17 22:07 bin/[
hrwxr-xr-x 0/0 0 2021-05-17 22:07 bin/[[ link to bin/[
hrwxr-xr-x 0/0 0 2021-05-17 22:07 bin/acpid link to bin/[
hrwxr-xr-x 0/0 0 2021-05-17 22:07 bin/add-shell link to bin/[
hrwxr-xr-x 0/0 0 2021-05-17 22:07 bin/addgroup link to bin/[
hrwxr-xr-x 0/0 0 2021-05-17 22:07 bin/adduser link to bin/[
hrwxr-xr-x 0/0 0 2021-05-17 22:07 bin/adjtimex link to bin/[
hrwxr-xr-x 0/0 0 2021-05-17 22:07 bin/ar link to bin/[
hrwxr-xr-x 0/0 0 2021-05-17 22:07 bin/arch link to bin/[
$ undocker busybox.tar - | tar -xv | sponge | head -10; echo '<...>'
bin/
bin/[
bin/[[
bin/acpid
bin/add-shell
bin/addgroup
bin/adduser
bin/adjtimex
bin/ar
bin/arch
<...>
```
You can also refer [here][2] for other ways to download Docker images. There
are many.
Refer [here][2] for other ways to download Docker images. There are many.
Converting a [1.1GB Docker image with 77
layers](https://hub.docker.com/r/homeassistant/home-assistant) takes around 4
seconds and on a reasonably powerful Intel laptop.
On author's laptop converting a [1.1GB Docker image with 77
layers](https://hub.docker.com/r/homeassistant/home-assistant) takes around 3
seconds and uses ~65MB of residential memory.
Usage example: systemd-nspawn
-----------------------------
Start with systemd-nspawn:
```
systemd-nspawn -D $PWD busybox httpd -vfp 8080
```
Usage example: plain old systemd
--------------------------------
Usage example: systemd
----------------------
```
systemd-run \
--wait --pty --collect --service-type=exec \
-p RootDirectory=$PWD \
-p ProtectProc=invisible \
-p PrivateUsers=true \
-p DynamicUser=yes \
-p ProtectProc=invisible \
-p RootDirectory=$PWD \
-- busybox httpd -vfp 8080
```
Good things like `PrivateUsers`, `DynamicUser`, `ProtectProc` and other
[systemd protections][1] are available, just like to any systemd unit.
[Systemd protections][1] like `PrivateUsers`, `DynamicUser`, `ProtectProc` and
others are available, just like to any systemd unit.
Similar Projects
----------------
* [rootfs_builder](https://github.com/ForAllSecure/rootfs_builder)
Changelog
---------
**v1.0**
* initial release: `rootfs.Flatten` and a simple command-line application.
Contributions
-------------
The following contributions may be accepted:
- Pull requests (patchsets) with accompanying tests.
- Patchsets, with accompanying tests.
- Regression reports.
If you found a container that undocker cannot extract, or extracts incorrectly
and you need this that work with undocker, do not submit an issue: submit a
patchset.
and you need this that work with undocker, submit a patchset. If there is a
reasonably small container that can reproduce the issue, we may add it to
integration tests. See `make test-integration` on how that works.
Reports of regression reports must provide examples of "works before" and "does
not work after". Issues without an accompanying patch will most likely be
rejected.
Communication
-------------
Feel free to ping me [directly][motiejus-comms].
LICENSE
-------
@ -107,3 +117,5 @@ MIT
[1]: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
[2]: https://fly.io/blog/docker-without-docker/
[motiejus-comms]: https://jakstys.lt/contact/

4
go.mod
View File

@ -1,3 +1,3 @@
module git.sr.ht/~motiejus/undocker
module git.jakstys.lt/motiejus/undocker
go 1.16
go 1.20

19
main.go
View File

@ -2,13 +2,14 @@
package main
import (
"errors"
"fmt"
"io"
"os"
"path/filepath"
"runtime"
"git.sr.ht/~motiejus/undocker/rootfs"
"git.jakstys.lt/motiejus/undocker/rootfs"
)
var Version = "unknown"
@ -42,7 +43,7 @@ func main() {
c := &command{flattener: rootfs.Flatten, Stdout: os.Stdout}
if err := c.execute(os.Args[1], os.Args[2]); err != nil {
fmt.Printf("Error: %v\n", err)
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
os.Exit(0)
@ -53,16 +54,13 @@ type command struct {
Stdout io.Writer
}
func (c *command) execute(infile string, outfile string) (err error) {
func (c *command) execute(infile string, outfile string) (_err error) {
rd, err := os.Open(infile)
if err != nil {
return err
}
defer func() {
err1 := rd.Close()
if err == nil {
err = err1
}
_err = errors.Join(_err, rd.Close())
}()
var out io.Writer
@ -74,9 +72,10 @@ func (c *command) execute(infile string, outfile string) (err error) {
return fmt.Errorf("create: %w", err)
}
defer func() {
err1 := outf.Close()
if err == nil {
err = err1
if _err != nil {
_err = errors.Join(_err, os.Remove(outfile))
} else {
_err = errors.Join(_err, outf.Close())
}
}()
out = outf

View File

@ -2,8 +2,9 @@ package main
import (
"bytes"
"errors"
"io"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"testing"
@ -13,18 +14,20 @@ func TestExecute(t *testing.T) {
var _foo = []byte("foo foo")
tests := []struct {
name string
fixture func(*testing.T, string)
infile string
outfile string
wantErr string
name string
fixture func(*testing.T, string)
flattener func(io.ReadSeeker, io.Writer) error
infile string
outfile string
wantErr string
assertion func(*testing.T, string)
}{
{
name: "ok passthrough via stdout",
infile: "t10-in.txt",
fixture: func(t *testing.T, dir string) {
fname := filepath.Join(dir, "t10-in.txt")
if err := ioutil.WriteFile(fname, _foo, 0644); err != nil {
if err := os.WriteFile(fname, _foo, 0644); err != nil {
t.Fatalf("unexpected error: %v", err)
}
},
@ -35,12 +38,37 @@ func TestExecute(t *testing.T) {
infile: "t20-in.txt",
fixture: func(t *testing.T, dir string) {
fname := filepath.Join(dir, "t20-in.txt")
if err := ioutil.WriteFile(fname, _foo, 0644); err != nil {
if err := os.WriteFile(fname, _foo, 0644); err != nil {
t.Fatalf("unexpected error: %v", err)
}
},
outfile: "t20-out.txt",
},
{
name: "bad flattener should remove the file",
infile: "t30-in.txt",
fixture: func(t *testing.T, dir string) {
fname := filepath.Join(dir, "t30-in.txt")
if err := os.WriteFile(fname, _foo, 0644); err != nil {
t.Fatalf("unexpected error: %v", err)
}
},
flattener: flattenBad,
outfile: "t30-out.txt",
wantErr: "some error",
assertion: func(t *testing.T, dir string) {
d, err := os.ReadDir(dir)
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
if len(d) != 1 {
t.Fatalf("expected 1 entry, got %d", len(d))
}
if d[0].Name() != "t30-in.txt" {
t.Fatalf("expected to find only t30-in.txt, got %s", d[0].Name())
}
},
},
{
name: "infile does not exist",
infile: "t3-does-not-exist.txt",
@ -57,7 +85,10 @@ func TestExecute(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
dir := t.TempDir()
var stdout bytes.Buffer
c := &command{Stdout: &stdout}
if tt.flattener == nil {
tt.flattener = flattenPassthrough
}
if tt.fixture != nil {
tt.fixture(t, dir)
}
@ -65,9 +96,14 @@ func TestExecute(t *testing.T) {
tt.outfile = filepath.Join(dir, tt.outfile)
}
inf := filepath.Join(dir, tt.infile)
c.flattener = flattenPassthrough
c := &command{Stdout: &stdout, flattener: tt.flattener}
err := c.execute(inf, tt.outfile)
if tt.assertion != nil {
tt.assertion(t, dir)
}
if tt.wantErr != "" {
if err == nil {
t.Fatal("expected error, got nil")
@ -78,21 +114,22 @@ func TestExecute(t *testing.T) {
}
return
}
var out []byte
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
var out []byte
if tt.outfile == "-" {
out = stdout.Bytes()
} else {
out, err = ioutil.ReadFile(tt.outfile)
out, err = os.ReadFile(tt.outfile)
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
}
if !bytes.Equal([]byte("foo foo"), out) {
t.Errorf("out != foo foo: %s", string(out))
t.Errorf("out != foo foo: %q", string(out))
}
})
}
}
@ -101,3 +138,7 @@ func flattenPassthrough(r io.ReadSeeker, w io.Writer) error {
_, err := io.Copy(w, r)
return err
}
func flattenBad(_ io.ReadSeeker, _ io.Writer) error {
return errors.New("some error")
}

36
release
View File

@ -1,32 +1,28 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
err() {
>&2 echo "ERROR: $*"
_err() {
echo >&2 "ERROR: $*"
exit 1
}
[[ -n "$(git status --porcelain)" ]] && \
err "working tree is dirty, commit your changes first."
git status --porcelain | grep -q "" &&
_err "working tree is dirty, commit your changes first."
[[ ! "$1" =~ ^v([0-9]+)\.([0-9]+)(\.([0-9]+))?$ ]] && \
err "arg1 accepts the following formats: v1.0 v1.0.0"
[[ "$1" =~ ^v([0-9]+)\.([0-9]+)(\.([0-9]+))?(-rc([0-9]+))?$ ]] ||
_err "arg1 accepts the following formats: v1.0 v1.0.0 v1.0-rc1 v1.0.1-rc1"
[[ -n "$(git tag | grep "^$1$")" ]] && \
err "tag $1 already exists"
git tag | grep -q "^$1$" &&
_err "tag $1 already exists"
# sanity test: do the tests pass?
make -B -j"$(nproc)" test lint
last_tag=$(git tag | tail -1)
make -B -j$(nproc) VSN=$1 sha256sum.txt.asc
{
echo undocker $1
echo undocker "$1"
echo
echo Changelog since $last_tag:
git log --pretty=format:"- [%cn] %s" $last_tag..HEAD
echo
echo
echo sha256sums of released binaries:
cat sha256sum.txt
echo
} | git tag -u motiejus@jakstys.lt -F - "$1"
echo Changelog since "$last_tag":
git log --pretty=format:"- [%an] %s" "$last_tag"..HEAD
} | git tag -F - "$1"

View File

@ -69,7 +69,7 @@ func Flatten(rd io.ReadSeeker, w io.Writer) (_err error) {
if err != nil {
return err
}
layerOffsets[hdr.Name] = here
layerOffsets[strings.TrimPrefix(hdr.Name, "./")] = here
}
}
@ -82,7 +82,7 @@ func Flatten(rd io.ReadSeeker, w io.Writer) (_err error) {
for i, name := range manifest[0].Layers {
layers[i] = nameOffset{
name: name,
offset: layerOffsets[name],
offset: layerOffsets[strings.TrimPrefix(name, "./")],
}
}
@ -144,12 +144,7 @@ func Flatten(rd io.ReadSeeker, w io.Writer) (_err error) {
tw := tar.NewWriter(w)
defer func() {
// Avoiding use of multierr: if error is present, return
// that. Otherwise return whatever `Close` returns.
err1 := tw.Close()
if _err == nil {
_err = err1
}
_err = errors.Join(_err, tw.Close())
}()
// iterate through all layers, all files, and write files.
for i, no := range layers {

View File

@ -7,7 +7,7 @@ import (
"reflect"
"testing"
"git.sr.ht/~motiejus/undocker/rootfs/internal/tartest"
"git.jakstys.lt/motiejus/undocker/rootfs/internal/tartest"
)
type (

View File

@ -0,0 +1,441 @@
drwxr-xr-x 0/0 0 2023-05-19 01:34 ./
drwxr-xr-x 0/0 0 2023-05-19 01:34 bin/
-rwxr-xr-x 0/0 1021496 2023-05-19 01:34 bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/[[ link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/acpid link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/add-shell link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/addgroup link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/adduser link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/adjtimex link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ar link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/arch link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/arp link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/arping link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ascii link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ash link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/awk link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/base32 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/base64 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/basename link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/bc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/beep link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/blkdiscard link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/blkid link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/blockdev link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/bootchartd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/brctl link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/bunzip2 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/busybox link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/bzcat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/bzip2 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cal link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chattr link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chgrp link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chmod link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chown link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chpasswd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chpst link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chroot link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chrt link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/chvt link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cksum link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/clear link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cmp link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/comm link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/conspy link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cp link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cpio link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/crc32 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/crond link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/crontab link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cryptpw link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cttyhack link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/cut link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/date link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/deallocvt link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/delgroup link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/deluser link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/depmod link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/devmem link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/df link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dhcprelay link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/diff link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dirname link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dmesg link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dnsd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dnsdomainname link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dos2unix link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dpkg link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dpkg-deb link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/du link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dumpkmap link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/dumpleases link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/echo link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ed link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/egrep link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/eject link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/env link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/envdir link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/envuidgid link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ether-wake link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/expand link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/expr link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/factor link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fakeidentd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fallocate link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/false link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fatattr link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fbset link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fbsplash link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fdflush link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fdformat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fdisk link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fgconsole link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fgrep link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/find link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/findfs link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/flock link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fold link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/free link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/freeramdisk link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fsck link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fsck.minix link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fsfreeze link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fstrim link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fsync link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ftpd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ftpget link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ftpput link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/fuser link to bin/[
-rwxr-xr-x 0/0 27136 2023-05-19 01:34 bin/getconf
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/getopt link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/getty link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/grep link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/groups link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/gunzip link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/gzip link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/halt link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/hd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/hdparm link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/head link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/hexdump link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/hexedit link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/hostid link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/hostname link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/httpd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/hush link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/hwclock link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/i2cdetect link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/i2cdump link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/i2cget link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/i2cset link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/i2ctransfer link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/id link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ifconfig link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ifdown link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ifenslave link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ifplugd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ifup link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/inetd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/init link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/insmod link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/install link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ionice link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/iostat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ip link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ipaddr link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ipcalc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ipcrm link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ipcs link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/iplink link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ipneigh link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/iproute link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/iprule link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/iptunnel link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/kbd_mode link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/kill link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/killall link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/killall5 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/klogd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/last link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/less link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/link link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/linux32 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/linux64 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/linuxrc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ln link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/loadfont link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/loadkmap link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/logger link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/login link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/logname link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/logread link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/losetup link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lpd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lpq link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lpr link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ls link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lsattr link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lsmod link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lsof link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lspci link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lsscsi link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lsusb link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lzcat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lzma link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/lzop link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/makedevs link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/makemime link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/man link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/md5sum link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mdev link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mesg link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/microcom link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mim link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mkdir link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mkdosfs link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mke2fs link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mkfifo link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mkfs.ext2 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mkfs.minix link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mkfs.vfat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mknod link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mkpasswd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mkswap link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mktemp link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/modinfo link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/modprobe link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/more link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mount link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mountpoint link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mpstat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mt link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/mv link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nameif link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nanddump link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nandwrite link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nbd-client link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/netstat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nice link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nl link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nmeter link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nohup link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nologin link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nproc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nsenter link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/nslookup link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ntpd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/od link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/openvt link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/partprobe link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/passwd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/paste link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/patch link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pgrep link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pidof link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ping link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ping6 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pipe_progress link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pivot_root link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pkill link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pmap link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/popmaildir link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/poweroff link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/powertop link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/printenv link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/printf link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ps link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pscan link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pstree link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pwd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/pwdx link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/raidautorun link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rdate link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rdev link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/readahead link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/readlink link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/readprofile link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/realpath link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/reboot link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/reformime link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/remove-shell link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/renice link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/reset link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/resize link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/resume link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rev link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rm link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rmdir link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rmmod link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/route link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rpm link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rpm2cpio link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rtcwake link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/run-init link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/run-parts link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/runlevel link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/runsv link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/runsvdir link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/rx link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/script link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/scriptreplay link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sed link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/seedrng link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sendmail link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/seq link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setarch link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setconsole link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setfattr link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setfont link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setkeycodes link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setlogcons link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setpriv link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setserial link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setsid link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/setuidgid link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sh link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sha1sum link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sha256sum link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sha3sum link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sha512sum link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/showkey link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/shred link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/shuf link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/slattach link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sleep link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/smemcap link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/softlimit link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sort link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/split link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ssl_client link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/start-stop-daemon link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/stat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/strings link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/stty link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/su link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sulogin link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sum link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sv link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/svc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/svlogd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/svok link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/swapoff link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/swapon link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/switch_root link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sync link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/sysctl link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/syslogd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tac link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tail link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tar link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/taskset link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tcpsvd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tee link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/telnet link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/telnetd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/test link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tftp link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tftpd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/time link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/timeout link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/top link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/touch link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tr link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/traceroute link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/traceroute6 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tree link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/true link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/truncate link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ts link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tsort link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tty link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ttysize link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/tunctl link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ubiattach link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ubidetach link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ubimkvol link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ubirename link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ubirmvol link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ubirsvol link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/ubiupdatevol link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/udhcpc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/udhcpc6 link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/udhcpd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/udpsvd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/uevent link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/umount link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/uname link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/unexpand link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/uniq link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/unix2dos link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/unlink link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/unlzma link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/unshare link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/unxz link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/unzip link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/uptime link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/users link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/usleep link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/uudecode link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/uuencode link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/vconfig link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/vi link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/vlock link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/volname link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/w link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/wall link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/watch link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/watchdog link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/wc link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/wget link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/which link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/who link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/whoami link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/whois link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/xargs link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/xxd link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/xz link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/xzcat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/yes link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/zcat link to bin/[
hrwxr-xr-x 0/0 0 2023-05-19 01:34 bin/zcip link to bin/[
drwxr-xr-x 0/0 0 2023-05-19 01:34 dev/
drwxr-xr-x 0/0 0 2023-05-19 01:34 etc/
-rw-r--r-- 0/0 306 2023-05-19 01:34 etc/group
-rw-r--r-- 0/0 114 2023-05-19 01:34 etc/localtime
drwxr-xr-x 0/0 0 2023-05-19 01:34 etc/network/
drwxr-xr-x 0/0 0 2023-05-19 01:34 etc/network/if-down.d/
drwxr-xr-x 0/0 0 2023-05-19 01:34 etc/network/if-post-down.d/
drwxr-xr-x 0/0 0 2023-05-19 01:34 etc/network/if-pre-up.d/
drwxr-xr-x 0/0 0 2023-05-19 01:34 etc/network/if-up.d/
-rw-r--r-- 0/0 494 2023-05-19 01:34 etc/nsswitch.conf
-rw-r--r-- 0/0 340 2023-05-19 01:34 etc/passwd
-rw------- 0/0 136 2023-05-19 01:34 etc/shadow
drwxr-xr-x 65534/65534 0 2023-05-19 01:34 home/
drwxr-xr-x 0/0 0 2023-05-19 01:34 lib/
-rwxr-xr-x 0/0 210976 2023-05-19 01:34 lib/ld-linux-x86-64.so.2
-rwxr-xr-x 0/0 1922136 2023-05-19 01:34 lib/libc.so.6
-rw-r--r-- 0/0 907784 2023-05-19 01:34 lib/libm.so.6
-rw-r--r-- 0/0 39896 2023-05-19 01:34 lib/libnss_compat.so.2
-rw-r--r-- 0/0 14400 2023-05-19 01:34 lib/libnss_dns.so.2
-rw-r--r-- 0/0 14400 2023-05-19 01:34 lib/libnss_files.so.2
-rw-r--r-- 0/0 27136 2023-05-19 01:34 lib/libnss_hesiod.so.2
-rw-r--r-- 0/0 14480 2023-05-19 01:34 lib/libpthread.so.0
-rw-r--r-- 0/0 60328 2023-05-19 01:34 lib/libresolv.so.2
lrwxrwxrwx 0/0 0 2023-05-19 01:34 lib64 -> lib
drwx------ 0/0 0 2023-05-19 01:34 root/
drwxrwxrwx 0/0 0 2023-05-19 01:34 tmp/
drwxr-xr-x 0/0 0 2023-05-19 01:34 usr/
drwxr-xr-x 0/0 0 2023-05-19 01:34 usr/bin/
lrwxrwxrwx 0/0 0 2023-05-19 01:34 usr/bin/env -> ../../bin/env
drwxr-xr-x 1/1 0 2023-05-19 01:34 usr/sbin/
drwxr-xr-x 0/0 0 2023-05-19 01:34 var/
drwxr-xr-x 0/0 0 2023-05-19 01:34 var/spool/
drwxr-xr-x 8/8 0 2023-05-19 01:34 var/spool/mail/
drwxr-xr-x 0/0 0 2023-05-19 01:34 var/www/