search for: consoledev

Displaying 9 results from an estimated 9 matches for "consoledev".

2019 Apr 18
1
[PATCH] Allow the initramfs to be persisted across root changes
...* With the -n option, it skips steps 1, 2 and 6 and can be used to check + * whether the given root and init are likely to work. + */ +@@ -55,7 +58,7 @@ static const char *program; + static void __attribute__ ((noreturn)) usage(void) + { + fprintf(stderr, +- "Usage: exec %s [-d caps] [-c consoledev] [-n] /real-root /sbin/init [args]\n", ++ "Usage: exec %s [-d caps] [-c consoledev] [-n] [-p] /real-root /sbin/init [args]\n", + program); + exit(1); + } +@@ -69,6 +72,7 @@ int main(int argc, char *argv[]) + const char *error; + const char *drop_caps = NULL; + bool dry_run = f...
2012 May 04
2
[PATCH] run-init: add drop_capabilities support
...em; + * - Drops comma-separated list of capabilities; * - Chroots; * - Opens /dev/console; * - Spawns the specified init program (with arguments.) @@ -50,7 +51,7 @@ static const char *program; static void __attribute__ ((noreturn)) usage(void) { fprintf(stderr, - "Usage: exec %s [-c consoledev] /real-root /sbin/init [args]\n", + "Usage: exec %s [-d caps] [-c consoledev] /real-root /sbin/init [args]\n", program); exit(1); } @@ -62,6 +63,7 @@ int main(int argc, char *argv[]) const char *realroot; const char *init; const char *error; + const char *drop_caps = NUL...
2019 Apr 18
0
[PATCH] Allow the initramfs to be persisted across root changes
...m. + * * With the -n option, it skips steps 1, 2 and 6 and can be used to check * whether the given root and init are likely to work. */ @@ -55,7 +58,7 @@ static const char *program; static void __attribute__ ((noreturn)) usage(void) { fprintf(stderr, - "Usage: exec %s [-d caps] [-c consoledev] [-n] /real-root /sbin/init [args]\n", + "Usage: exec %s [-d caps] [-c consoledev] [-n] [-p] /real-root /sbin/init [args]\n", program); exit(1); } @@ -69,6 +72,7 @@ int main(int argc, char *argv[]) const char *error; const char *drop_caps = NULL; bool dry_run = false; +...
2019 Apr 28
0
[klibc:master] run-init: Allow the initramfs to be persisted across root changes
...m. + * * With the -n option, it skips steps 1, 2 and 6 and can be used to check * whether the given root and init are likely to work. */ @@ -55,7 +58,7 @@ static const char *program; static void __attribute__ ((noreturn)) usage(void) { fprintf(stderr, - "Usage: exec %s [-d caps] [-c consoledev] [-n] /real-root /sbin/init [args]\n", + "Usage: exec %s [-d caps] [-c consoledev] [-n] [-p] /real-root /sbin/init [args]\n", program); exit(1); } @@ -69,6 +72,7 @@ int main(int argc, char *argv[]) const char *error; const char *drop_caps = NULL; bool dry_run = false; +...
2016 Jan 17
1
[PATCH klibc] run-init: Add dry-run mode
...t program (with arguments.) */ +#include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> @@ -51,7 +52,7 @@ static const char *program; static void __attribute__ ((noreturn)) usage(void) { fprintf(stderr, - "Usage: exec %s [-d caps] [-c consoledev] /real-root /sbin/init [args]\n", + "Usage: exec %s [-d caps] [-c consoledev] [-n] /real-root /sbin/init [args]\n", program); exit(1); } @@ -64,6 +65,7 @@ int main(int argc, char *argv[]) const char *init; const char *error; const char *drop_caps = NULL; + bool dry_run =...
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
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
...nd init are likely to work. */ +#include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> @@ -51,7 +55,7 @@ static const char *program; static void __attribute__ ((noreturn)) usage(void) { fprintf(stderr, - "Usage: exec %s [-d caps] [-c consoledev] /real-root /sbin/init [args]\n", + "Usage: exec %s [-d caps] [-c consoledev] [-n] /real-root /sbin/init [args]\n", program); exit(1); } @@ -64,6 +68,7 @@ int main(int argc, char *argv[]) const char *init; const char *error; const char *drop_caps = NULL; + bool dry_run =...
2011 Jul 13
9
[PATCH 0/8] switch_root() enhancements
On a train ride to Bruxelles, brought out my axe and directly attacked run_init(8). run_init(8) is dead, long live switch_root(8). The next run on switch_root(8) involves fdopendir, so another push for the upcoming stdio 1.6 branch. The following is boot tested with initramfs-tools, kinit(8) tests would very much be appreciated!? Michal Suchanek (1): [klibc] switch_root: Fix single file
2017 Dec 31
4
[PATCH klibc 0/4] Fixes from Debian and Ubuntu
The following patches come from Debian and/or Ubuntu packages of klibc. Ben. Ben Hutchings (1): [klibc] run-init: Add dry-run mode Jay Vosburgh (1): [klibc] ipconfig: Use separate sockets for DHCP from multiple interfaces Mathieu Trudel-Lapierre (1): [klibc] ipconfig: Set broadcast when sending DHCPREQUEST and DHCPDISCOVER YunQiang Su (1): [klibc] mips: setjmp.S: don't