search for: runinitlib

Displaying 16 results from an estimated 16 matches for "runinitlib".

2012 May 04
2
[PATCH] run-init: add drop_capabilities support
...it/Kbuild | 3 +-- usr/kinit/capabilities.h | 10 ++++++++++ usr/kinit/kinit.c | 6 +++--- usr/kinit/run-init/Kbuild | 9 +++++++-- usr/kinit/run-init/run-init.c | 12 ++++++++---- usr/kinit/run-init/run-init.h | 2 +- usr/kinit/run-init/runinitlib.c | 11 +++++++++-- 7 files changed, 39 insertions(+), 14 deletions(-) create mode 100644 usr/kinit/capabilities.h diff --git a/usr/kinit/Kbuild b/usr/kinit/Kbuild index 8f6d08e..5320127 100644 --- a/usr/kinit/Kbuild +++ b/usr/kinit/Kbuild @@ -3,14 +3,13 @@ # # library part of kinit. Is use...
2019 Apr 18
0
[PATCH] Allow the initramfs to be persisted across root changes
...dential information by rebooting into an environment that scrapes RAM contents. Signed-off-by: Matthew Garrett <mjg59 at google.com> --- usr/kinit/kinit.c | 2 +- usr/kinit/run-init/run-init.c | 14 ++++++++++---- usr/kinit/run-init/run-init.h | 3 ++- usr/kinit/run-init/runinitlib.c | 14 ++++++++------ 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/usr/kinit/kinit.c b/usr/kinit/kinit.c index de03c2d3..28d29534 100644 --- a/usr/kinit/kinit.c +++ b/usr/kinit/kinit.c @@ -305,7 +305,7 @@ int main(int argc, char *argv[]) errmsg = run_init("/root",...
2019 Apr 18
1
[PATCH] Allow the initramfs to be persisted across root changes
...@ -32,6 +32,7 @@ + + const char *run_init(const char *realroot, const char *console, + const char *drop_caps, bool dry_run, +- const char *init, char **initargs); ++ bool persist_initramfs, const char *init, ++ char **initargs); + + #endif +diff --git a/usr/kinit/run-init/runinitlib.c b/usr/kinit/run-init/runinitlib.c +index 74d7883f..1c2e56a4 100644 +--- a/usr/kinit/run-init/runinitlib.c ++++ b/usr/kinit/run-init/runinitlib.c +@@ -26,7 +26,7 @@ + * ----------------------------------------------------------------------- */ + + /* +- * run_init(realroot, consoledev, drop_caps...
2019 Apr 28
0
[klibc:master] run-init: Allow the initramfs to be persisted across root changes
...apes RAM contents. Signed-off-by: Matthew Garrett <mjg59 at google.com> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/kinit/kinit.c | 2 +- usr/kinit/run-init/run-init.c | 14 ++++++++++---- usr/kinit/run-init/run-init.h | 3 ++- usr/kinit/run-init/runinitlib.c | 14 ++++++++------ 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/usr/kinit/kinit.c b/usr/kinit/kinit.c index de03c2d3..28d29534 100644 --- a/usr/kinit/kinit.c +++ b/usr/kinit/kinit.c @@ -305,7 +305,7 @@ int main(int argc, char *argv[]) errmsg = run_init("/root",...
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
...ww.zytor.com/pipermail/klibc/2017-December/003973.html Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/kinit/kinit.c | 2 +- usr/kinit/run-init/run-init.c | 37 +++++++++++++++++++++++------------- usr/kinit/run-init/run-init.h | 5 ++++- usr/kinit/run-init/runinitlib.c | 42 +++++++++++++++++++++++++++-------------- 4 files changed, 57 insertions(+), 29 deletions(-) diff --git a/usr/kinit/kinit.c b/usr/kinit/kinit.c index 523c92b..de03c2d 100644 --- a/usr/kinit/kinit.c +++ b/usr/kinit/kinit.c @@ -304,7 +304,7 @@ int main(int argc, char *argv[]) init_argv[0]...
2010 Nov 20
3
[PATCH 1/4] utils: cleanup unused includes
several errno.h for no good reasons. cleanup losesetup which is not using getopt_long, thus doesn't need getopt.h included. Move stdarg.h include up in losesetup to more proper place. Signed-off-by: maximilian attems <max at stro.at> --- usr/utils/dmesg.c | 1 - usr/utils/losetup.c | 4 +--- usr/utils/mkfifo.c | 1 - usr/utils/nuke.c | 1 - usr/utils/umount.c | 1
2010 Aug 25
0
[patch] ipconfig fixes + run-init nit
...et rid of over paranoid test for /init git diff -M --stat --summary klibc-1.5.19.. usr/kinit/ipconfig/bootp_proto.c | 2 +- usr/kinit/ipconfig/dhcp_proto.c | 4 ++-- usr/kinit/ipconfig/main.c | 16 ++++++++++------ usr/kinit/ipconfig/packet.c | 5 +++-- usr/kinit/run-init/runinitlib.c | 4 ---- usr/klibc/version | 2 +- 6 files changed, 17 insertions(+), 16 deletions(-) thanks to all the involved parties. maks commit 61368211ae1e77fa2ef82bb9135c7b8e9447023e Author: maximilian attems <max at stro.at> Date: Wed Aug 25 20:34:26 2010 +0200 [kli...
2011 Jul 19
4
[PATCH v1 0/2] Support dropping of capabilities from early userspace.
This patchset applies to klibc mainline. As is it will probably collide with Maximilian's recent patch to rename run-init to switch_root posted last week. To boot an untrusted environment with certain capabilities locked out, we'd like to be able to drop the capabilities up front from early userspace, before we actually transition onto the root volume. This patchset implements this by
2016 Jan 17
1
[PATCH klibc] run-init: Add dry-run mode
...RUN_INIT_H +#include <stdbool.h> + const char *run_init(const char *realroot, const char *console, - const char *drop_caps, const char *init, char **initargs); + const char *drop_caps, bool dry_run, + const char *init, char **initargs); #endif --- a/usr/kinit/run-init/runinitlib.c +++ b/usr/kinit/run-init/runinitlib.c @@ -156,10 +156,10 @@ static int nuke(const char *what) } const char *run_init(const char *realroot, const char *console, - const char *drop_caps, const char *init, + const char *drop_caps, bool dry_run, const char *init, char **initar...
2017 Dec 31
4
[PATCH klibc 0/4] Fixes from Debian and Ubuntu
...dev.h | 1 + usr/kinit/ipconfig/packet.c | 39 +++++++++++++++++------------- usr/kinit/ipconfig/packet.h | 4 ++-- usr/kinit/kinit.c | 2 +- usr/kinit/run-init/run-init.c | 37 ++++++++++++++++++---------- usr/kinit/run-init/run-init.h | 5 +++- usr/kinit/run-init/runinitlib.c | 42 +++++++++++++++++++++----------- usr/klibc/arch/mips/setjmp.S | 24 ------------------- 10 files changed, 121 insertions(+), 94 deletions(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 811 bytes...
2011 Jul 13
9
[PATCH 0/8] switch_root() enhancements
...| 6 +- usr/kinit/kinit.c | 36 +---- usr/kinit/nfsmount/README.locking | 2 +- usr/kinit/run-init/Kbuild | 29 ---- usr/kinit/run-init/run-init.c | 93 ------------- usr/kinit/run-init/run-init.h | 34 ----- usr/kinit/run-init/runinitlib.c | 209 ----------------------------- usr/kinit/switch_root/Kbuild | 29 ++++ usr/kinit/switch_root/switch_root.c | 98 ++++++++++++++ usr/kinit/switch_root/switch_root.h | 34 +++++ usr/kinit/switch_root/switch_rootlib.c | 230 ++++++++++++++++++++++++++++++++ 11 fi...
2019 Jan 05
0
Pull request: collected patches for klibc
...++--- usr/kinit/ipconfig/packet.h | 4 +- usr/kinit/kinit.c | 2 +- usr/kinit/nfsmount/main.c | 19 +++ usr/kinit/run-init/run-init.c | 37 +++-- usr/kinit/run-init/run-init.h | 5 +- usr/kinit/run-init/runinitlib.c | 42 ++++-- usr/klibc/Kbuild | 3 +- usr/klibc/SYSCALLS.def | 3 +- usr/klibc/arch/mips/MCONFIG | 7 +- usr/klibc/arch/mips/crt0.S | 13 +- usr/klibc/arch/mips/klibc.ld | 214 -----...
2008 Jun 16
0
latest fixes
...ees Cook <kees at ubuntu.com> Signed-off-by: maximilian attems <maks at debian.org> diff --git a/usr/kinit/run-init/Kbuild b/usr/kinit/run-init/Kbuild index 61a9d0b..bf6e140 100644 --- a/usr/kinit/run-init/Kbuild +++ b/usr/kinit/run-init/Kbuild @@ -14,6 +14,10 @@ objs := run-init.o runinitlib.o # Create built-in.o with all object files (used by kinit) lib-y := $(objs) +# force run-init to not have an executable stack (to keep READ_IMPLIES_EXEC +# personality(2) flag from getting set and passed to init). +EXTRA_KLIBCLDFLAGS += -z noexecstack + # .o files used to built executables s...
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...C__=2 -D__KLIBC_MINOR__=0 -D_BITSIZE=32 -fno-stack-protector -fwrapv -m32 -Os -W -Wall -Wno-sign-compare -Wno-unused-parameter -I/root/ofs/trunk/packages/klibc-2.0.2/usr/kinit/run-init/.. -c -o usr/kinit/run-init/run-init.o usr/kinit/run-init/run-init.c ppc-linux-gcc -Wp,-MD,usr/kinit/run-init/.runinitlib.o.d -nostdinc -iwithprefix include -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/arch/ppc -Iusr/include/arch/ppc -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/bits32 -Iusr/include/bits32 -I/root/ofs/trunk/packages/klibc-2.0.2/usr/klibc/../include -Iusr/klibc/../include -I/root/ofs/tr...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote: > > > Find attached two patches I have in order to build klibc 2.0.2 > against kernel 3.8.13 > We had to introduce those patches when going from kernel 3.6 to kernel 3.7 > Hope it helps. > those patches are wrong and again very brittle. just use the way it is described in `make help': A) cd ~/src/linux
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at: