Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into cow
Browse files Browse the repository at this point in the history
* upstream/master:
  Use LC_ALL instead of LANG
  fix: update URLs to proot-me.github.io
  add: gitignore
  Fix use of size
  • Loading branch information
alejandroliu committed Jun 18, 2017
2 parents 71c411f + cffb379 commit 5342c87
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 23 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*.d
*.o
src/.check_process_vm.res
src/.check_seccomp_filter.res
src/build.h
src/care
src/loader/loader
src/loader/loader-m32
src/proot

10 changes: 5 additions & 5 deletions doc/care/manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,15 @@ Downloads
=========

CARE is heavily based on PRoot_, that's why they are both hosted in
the same repository: http://github.proot.me. Since CARE is supposed
the same repository: https://github.com/proot-me. Since CARE is supposed
to work on any Linux systems, it is recommended to use following
highly compatible static binaries:

* for x86_64: http://static.reproducible.io/care-x86_64
* for x86_64: https://github.com/proot-me/proot-static-build/raw/master/static/care-x86_64

* for x86: http://static.reproducible.io/care-x86
* for x86: https://github.com/proot-me/proot-static-build/raw/master/static/care-x86

* for ARM: http://static.reproducible.io/care-arm
* for ARM: https://github.com/proot-me/proot-static-build/raw/master/static/care-arm

* other architectures: on demand.

Expand All @@ -451,7 +451,7 @@ highly compatible static binaries:
Colophon
========

Visit http://reproducible.io for help, bug reports, suggestions, patches, ...
Visit https://proot-me.github.io for help, bug reports, suggestions, patches, ...
Copyright (C) 2014 STMicroelectronics, licensed under GPL v2 or later.

::
Expand Down
4 changes: 2 additions & 2 deletions doc/ecosystem/care-ecosystem.graphml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<graph edgedefault="directed" id="G">
<data key="d7"/>
<node id="n0">
<data key="d4"><![CDATA[http://reproducible.io]]></data>
<data key="d4"><![CDATA[https://proot-me.github.io]]></data>
<data key="d6">
<y:ShapeNode>
<y:Geometry height="30.0" width="49.53125" x="-24.765625" y="-15.0"/>
Expand Down Expand Up @@ -251,7 +251,7 @@
</node>
<node id="n13">
<data key="d4"/>
<data key="d5"><![CDATA[About 100 domains references http://reproducible.io according to Google]]></data>
<data key="d5"><![CDATA[About 100 domains references https://proot-me.github.io according to Google]]></data>
<data key="d6">
<y:ShapeNode>
<y:Geometry height="30.0" width="127.6953125" x="-413.5669895377619" y="-0.9861523926047937"/>
Expand Down
4 changes: 2 additions & 2 deletions doc/ecosystem/care-ecosystem.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/ecosystem/proot-ecosystem.graphml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
</data>
</node>
<node id="n12">
<data key="d4"><![CDATA[http://reproducible.io]]></data>
<data key="d4"><![CDATA[https://proot-me.github.io]]></data>
<data key="d6">
<y:ShapeNode>
<y:Geometry height="30.0" width="49.53125" x="-411.72348342029915" y="160.7515741231802"/>
Expand Down
2 changes: 1 addition & 1 deletion doc/ecosystem/proot-ecosystem.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/proot/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ Release v3.2

This release was mostly driven by the requirements of "CARE", a new
project based on PRoot that will be released publicly soon on
http://reproducible.io. For information, "CARE" is the short for
https://proot-me.github.io. For information, "CARE" is the short for
"Comprehensive Archiver for Reproducible Execution".

Highlights
Expand Down
2 changes: 1 addition & 1 deletion doc/proot/manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ requests before sending them to the host kernel. This means that
guest programs can use host resources (devices, network, ...) just as
if they were "normal" host programs.

.. _CARE: http://reproducible.io
.. _CARE: https://proot-me.github.io


Options
Expand Down
2 changes: 1 addition & 1 deletion doc/proot/rpm-spec
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ Release v3.2

This release was mostly driven by the requirements of "CARE", a new
project based on PRoot that will be released publicly soon on
http://reproducible.io. For information, "CARE" is the short for
https://proot-me.github.io. For information, "CARE" is the short for
"Comprehensive Archiver for Reproducible Execution".

Highlights
Expand Down
4 changes: 2 additions & 2 deletions src/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ LINK = $($(quiet)LD) -o $@ $^ $(LDFLAGS)
OBJIFY = $($(quiet)GEN) \
$(OBJCOPY) \
--input binary \
--output `env LANG=C $(OBJDUMP) -f cli/cli.o | \
--output `env LC_ALL=C $(OBJDUMP) -f cli/cli.o | \
grep 'file format' | awk '{print $$4}'` \
--binary-architecture `env LANG=C $(OBJDUMP) -f cli/cli.o | \
--binary-architecture `env LC_ALL=C $(OBJDUMP) -f cli/cli.o | \
grep architecture | cut -f 1 -d , | awk '{print $$2}'` \
$< $@

Expand Down
2 changes: 1 addition & 1 deletion src/cli/care.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static int handle_option_h(Tracee *tracee UNUSED, const Cli *cli UNUSED, const c
if (size != 0)
write(1, &_binary_manual_start, size);
else
printf("No manual found, please visit http://reproducible.io instead.\n");
printf("No manual found, please visit https://proot-me.github.io instead.\n");

exit_failure = false;
return -1;
Expand Down
2 changes: 1 addition & 1 deletion src/cli/care.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static Cli care_cli = {
.name = "care",
.subtitle = "Comprehensive Archiver for Reproducible Execution",
.synopsis = "care [option] ... command",
.colophon = "Visit http://reproducible.io for help, bug reports, suggestions, patches, ...\n\
.colophon = "Visit https://proot-me.github.io for help, bug reports, suggestions, patches, ...\n\
Copyright (C) 2014 STMicroelectronics, licensed under GPL v2 or later.",
.logo = "\
_____ ____ _____ ____\n\
Expand Down
8 changes: 4 additions & 4 deletions src/execve/enter.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,10 @@ static int expand_runner(Tracee* tracee, char host_path[PATH_MAX], char user_pat
}

extern unsigned char _binary_loader_exe_start;
extern unsigned char _binary_loader_exe_size;
extern unsigned char _binary_loader_exe_end;

extern unsigned char WEAK _binary_loader_m32_exe_start;
extern unsigned char WEAK _binary_loader_m32_exe_size;
extern unsigned char WEAK _binary_loader_m32_exe_end;

/**
* Extract the built-in loader. This function returns NULL if an
Expand All @@ -483,11 +483,11 @@ static char *extract_loader(const Tracee *tracee, bool wants_32bit_version)

if (wants_32bit_version) {
start = (void *) &_binary_loader_m32_exe_start;
size = (size_t) &_binary_loader_m32_exe_size;
size = (size_t)(&_binary_loader_m32_exe_end-&_binary_loader_m32_exe_start);
}
else {
start = (void *) &_binary_loader_exe_start;
size = (size_t) &_binary_loader_exe_size;
size = (size_t) (&_binary_loader_exe_end-&_binary_loader_exe_start);
}

status2 = write(fd, start, size);
Expand Down
2 changes: 1 addition & 1 deletion src/extension/care/final.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static int archive_readme_txt(const Care *care)
return -1;
}

N("This archive was created with CARE: http://reproducible.io. It contains:");
N("This archive was created with CARE: https://proot-me.github.io. It contains:");
N("");
N("re-execute.sh");
N(" start the re-execution of the initial command as originally");
Expand Down

0 comments on commit 5342c87

Please sign in to comment.