search for: initargs

Displaying 11 results from an estimated 11 matches for "initargs".

2016 Jan 17
1
[PATCH klibc] run-init: Add dry-run mode
...n/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 = false; char **initargs; /* Variables... */ @@ -72,11 +74,13 @@ int main(int argc, char *argv[]) /* Parse the command line */ program = argv[0]; - while ((o = getopt(argc, argv, "c:d:")) != -1) { + while ((o = getopt(argc, argv, "c:d:n")) != -1) { if (o == 'c') { console = opta...
2019 Apr 18
1
[PATCH] Allow the initramfs to be persisted across root changes
...uot;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; ++ bool persist_initramfs = false; + char **initargs; + + /* Variables... */ +@@ -77,13 +81,15 @@ int main(int argc, char *argv[]) + /* Parse the command line */ + program = argv[0]; + +- while ((o = getopt(argc, argv, "c:d:n")) != -1) { ++ while ((o = getopt(argc, argv, "c:d:pn")) != -1) { + if (o == 'c') { + co...
2012 May 04
2
[PATCH] run-init: add drop_capabilities support
.../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 = NULL; char **initargs; /* Variables... */ @@ -70,9 +72,11 @@ int main(int argc, char *argv[]) /* Parse the command line */ program = argv[0]; - while ((o = getopt(argc, argv, "c:")) != -1) { + while ((o = getopt(argc, argv, "c:d:")) != -1) { if (o == 'c') { console = optarg;...
2019 Apr 18
0
[PATCH] Allow the initramfs to be persisted across root changes
...t;, + "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; + bool persist_initramfs = false; char **initargs; /* Variables... */ @@ -77,13 +81,15 @@ int main(int argc, char *argv[]) /* Parse the command line */ program = argv[0]; - while ((o = getopt(argc, argv, "c:d:n")) != -1) { + while ((o = getopt(argc, argv, "c:d:pn")) != -1) { if (o == 'c') { console = op...
2019 Apr 28
0
[klibc:master] run-init: Allow the initramfs to be persisted across root changes
...t;, + "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; + bool persist_initramfs = false; char **initargs; /* Variables... */ @@ -77,13 +81,15 @@ int main(int argc, char *argv[]) /* Parse the command line */ program = argv[0]; - while ((o = getopt(argc, argv, "c:d:n")) != -1) { + while ((o = getopt(argc, argv, "c:d:pn")) != -1) { if (o == 'c') { console = op...
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
...n/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 = false; char **initargs; /* Variables... */ @@ -72,11 +77,13 @@ int main(int argc, char *argv[]) /* Parse the command line */ program = argv[0]; - while ((o = getopt(argc, argv, "c:d:")) != -1) { + while ((o = getopt(argc, argv, "c:d:n")) != -1) { if (o == 'c') { console = opta...
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
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
2006 Sep 28
1
ramfs to tmpfs
...MFS_MAGIC 0x858458f6 #endif #ifndef MS_MOVE # define MS_MOVE 8192 #endif #define NEWROOT "/newroot" #define CMDLINE "/proc/cmdline" #define MEMINFO "/proc/meminfo" static const char *program; // argv[0] static char newroot[512]; // where newroot will be static char **initargs; // argv static struct stat root_st; // stat of / static char meminfo[1024]; // contents of /proc/meminfo, after getprocinfo static char cmdline[2048]; // contents of /proc/cmdline, after getprocinfo static const char *getprocinfo(void); /* error functions: * error(fmt, ...) print "program...
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
2015 Dec 22
1
Setting environment variables for LXC Containers
Hello Is there a way to set custom environment variables for LXC containers so that it is available for all processes within the container? The libvirt-lxc driver seems to be setting up only the below variables (as per the docs), but there doesn't seem to be a way customize it. containerThe fixed string libvirt-lxc to identify libvirt as the creator container_uuidThe UUID assigned to the