search for: realroot

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

2012 May 04
2
[PATCH] run-init: add drop_capabilities support
...return)) 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 = 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 = geto...
2019 Apr 18
1
[PATCH] Allow the initramfs to be persisted across root changes
...optarg; + } else if (o == 'n') { + dry_run = true; ++ } else if (o == 'p') { ++ persist_initramfs = true; + } else { + usage(); + } +@@ -96,7 +102,7 @@ int main(int argc, char *argv[]) + init = argv[optind + 1]; + initargs = argv + optind + 1; + +- error = run_init(realroot, console, drop_caps, dry_run, init, initargs); ++ error = run_init(realroot, console, drop_caps, dry_run, persist_initramfs, init, initargs); + + if (error) { + fprintf(stderr, "%s: %s: %s\n", program, error, strerror(errno)); +diff --git a/usr/kinit/run-init/run-init.h b/usr/kinit/ru...
2005 Feb 14
6
Query regarding initramfs
Hi I had some doubts regarding what all the init application should do: >> so, that should that application do? >> - mount /dev/hda1 /new-root >> - cd /new-root >> - run-init 1. Of what I understand, before exitting, init should mount the realroot and execute the init process. Is realroot the '/' or the empty directory created (in the cpio archive) ? How should I go about it? Using pivot_root, chroot ...? Am not very clear with these. 2. At the time init(from initrmafs) is called, is there any file system mounted? Thanks R...
2019 Apr 18
0
[PATCH] Allow the initramfs to be persisted across root changes
...drop_caps = optarg; } else if (o == 'n') { dry_run = true; + } else if (o == 'p') { + persist_initramfs = true; } else { usage(); } @@ -96,7 +102,7 @@ int main(int argc, char *argv[]) init = argv[optind + 1]; initargs = argv + optind + 1; - error = run_init(realroot, console, drop_caps, dry_run, init, initargs); + error = run_init(realroot, console, drop_caps, dry_run, persist_initramfs, init, initargs); if (error) { fprintf(stderr, "%s: %s: %s\n", program, error, strerror(errno)); diff --git a/usr/kinit/run-init/run-init.h b/usr/kinit/run-ini...
2019 Apr 28
0
[klibc:master] run-init: Allow the initramfs to be persisted across root changes
...drop_caps = optarg; } else if (o == 'n') { dry_run = true; + } else if (o == 'p') { + persist_initramfs = true; } else { usage(); } @@ -96,7 +102,7 @@ int main(int argc, char *argv[]) init = argv[optind + 1]; initargs = argv + optind + 1; - error = run_init(realroot, console, drop_caps, dry_run, init, initargs); + error = run_init(realroot, console, drop_caps, dry_run, persist_initramfs, init, initargs); if (error) { fprintf(stderr, "%s: %s: %s\n", program, error, strerror(errno)); diff --git a/usr/kinit/run-init/run-init.h b/usr/kinit/run-ini...
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
2016 Jan 17
1
[PATCH klibc] run-init: Add dry-run mode
...) { console = optarg; } else if (o == 'd') { drop_caps = optarg; + } else if (o == 'n') { + dry_run = true; } else { usage(); } @@ -89,9 +93,13 @@ int main(int argc, char *argv[]) init = argv[optind + 1]; initargs = argv + optind + 1; - error = run_init(realroot, console, drop_caps, init, initargs); + error = run_init(realroot, console, drop_caps, dry_run, init, initargs); - /* If run_init returns, something went wrong */ - fprintf(stderr, "%s: %s: %s\n", program, error, strerror(errno)); - return 1; + if (error) { + fprintf(stderr, "%s:...
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
...) { console = optarg; } else if (o == 'd') { drop_caps = optarg; + } else if (o == 'n') { + dry_run = true; } else { usage(); } @@ -89,9 +96,13 @@ int main(int argc, char *argv[]) init = argv[optind + 1]; initargs = argv + optind + 1; - error = run_init(realroot, console, drop_caps, init, initargs); + error = run_init(realroot, console, drop_caps, dry_run, init, initargs); - /* If run_init returns, something went wrong */ - fprintf(stderr, "%s: %s: %s\n", program, error, strerror(errno)); - return 1; + if (error) { + fprintf(stderr, "%s:...
2000 Nov 01
4
root-partition
Hi all, I've been working with the ext3-fs for several months (since 0.0.2c), and it works pretty fine for me, but I haven't found out, how I works to migrate my root-partition from ext2 to ext3. I tried it with the commands at the lilo-prompt, but it didn't work. I only received a kernel panic. Any ideas, how I can migrate to ext3 on my root-partition? tnx, Joachim -- Joachim
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
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
2013 Mar 01
2
solving x in a polynomial function
Hi there, Does anyone know how I solve for x from a given y in a polynomial function? Here's some example code: ##example file a<-1:10 b<-c(1,2,2.5,3,3.5,4,6,7,7.5,8) po.lm<-lm(a~b+I(b^2)+I(b^3)+I(b^4)); summary(po.lm) (please ignore that the model is severely overfit- that's not the point). Let's say I want to solve for the value b where a = 5.5. Any thoughts? I did
2002 Aug 01
0
W2k no longer has Trust to samba pdc
...using client side printer drivers. lpq command = lpstat -o %p lprm command = cancel %p-%j browseable = No [print$] comment = PlugnPray Printer Support path = /var/lib/samba/printers write list = @adm root mbruntel [mbruntel] comment = Mitch's home Service path = /home/mbruntel/dosroot/realroot guest account = valid users = mbruntel administrator read only = No max connections = 4 [cbruntel] comment = Cheryl's Service path = /home/cbruntel/dosroot/realroot valid users = cbruntel admin users = mbruntel @admins root cbruntel read only = No inherit permissions = Yes max conn...
2002 Aug 13
1
w2k pro no longer trusted by 2.2.3 pdc
...st = @family write list = mbruntel ntadmin @admins @family force group = @family guest ok = yes writable = no [Profiles] comment = samba roaming profiles here path = /var/lib/samba/profiles browseable = yes guest ok = yes [mbruntel] comment = Mitch's Home Stuff path = /home/mbruntel/dosroot/realroot valid users = mbruntel writable = yes max connections = 8 browseable = yes [cbruntel] comment = Cheryl's Home Stuff path = /home/cbruntel/dosroot/realroot valid users = cbruntel mbruntel writable = yes max connections = 8 [software] comment = SW shared directory path = /software valid user...
2002 Aug 16
0
help (Still) w2k pro no longer trusted by 2.2.3 pdc
...ist = @family write list = mbruntel ntadmin @admins @family force group = @family guest ok = yes writable = no [Profiles] comment = samba roaming profiles here path = /var/lib/samba/profiles browseable = yes guest ok = yes [mbruntel] comment = Mitch's Home Stuff path = /home/mbruntel/dosroot/realroot valid users = mbruntel writable = yes max connections = 8 browseable = yes [cbruntel] comment = Cheryl's Home Stuff path = /home/cbruntel/dosroot/realroot valid users = cbruntel mbruntel writable = yes max connections = 8 [software] comment = SW shared directory path = /software valid users =...
2010 Aug 25
0
[patch] ipconfig fixes + run-init nit
...Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/kinit/run-init/runinitlib.c b/usr/kinit/run-init/runinitlib.c index 423637e..50baa3d 100644 --- a/usr/kinit/run-init/runinitlib.c +++ b/usr/kinit/run-init/runinitlib.c @@ -176,10 +176,6 @@ const char *run_init(const char *realroot, const char *console, if (rst.st_dev == cst.st_dev) return "current directory on the same filesystem as the root"; - /* The initramfs should have /init */ - if (stat("/init", &ist) || !S_ISREG(ist.st_mode)) - return "can't find /init on initramfs"; -...