search for: init_path

Displaying 15 results from an estimated 15 matches for "init_path".

2006 Feb 24
5
Sanity Check
...#39;'t even spit those out. So, I dug into the initializer.rb (/vendor/rails/railties/lib/initializer.rb) to see wtf is going on, and found the problem... but... can''t explain it. Here is the code in question: lib_path = File.join(directory, ''lib'') init_path = File.join(directory, ''init.rb'') has_lib = File.directory?(lib_path) #raise LoadError, "Dude, this path is ok: " + has_lib# => public/../config/../vendor/plugins/my_plugin/init.rb has_init = File.file?(init_path) #raise LoadError...
2012 May 04
2
[PATCH] run-init: add drop_capabilities support
...r *argv[]) check_path("/root"); do_mounts(cmdc, cmdv); - drop_capabilities(get_arg(cmdc, cmdv, "drop_capabilities=")); - if (mnt_procfs) { umount2("/proc", 0); mnt_procfs = 0; @@ -305,7 +303,9 @@ int main(int argc, char *argv[]) init_argv[0] = strrchr(init_path, '/') + 1; - errmsg = run_init("/root", "/dev/console", init_path, init_argv); + errmsg = run_init("/root", "/dev/console", + get_arg(cmdc, cmdv, "drop_capabilities="), + init_path, init_argv); /* If run_init returned, somethin...
2016 Jan 17
1
[PATCH klibc] run-init: Add dry-run mode
...return "stat init"; + if (!S_ISREG(ist.st_mode) || !(ist.st_mode & S_IXUGO)) + return "init not executable"; + return NULL; /* Success */ + } } --- a/usr/kinit/kinit.c +++ b/usr/kinit/kinit.c @@ -304,7 +304,7 @@ int main(int argc, char *argv[]) init_argv[0] = strrchr(init_path, '/') + 1; errmsg = run_init("/root", "/dev/console", - get_arg(cmdc, cmdv, "drop_capabilities="), + get_arg(cmdc, cmdv, "drop_capabilities="), false, init_path, init_argv); /* If run_init returned, something went bad */ --------...
2008 May 29
0
NoMethodError: undefined method `configuration' for #<String inside railties?
...(railties/lib/rails/plugin.rb) in the following block: def evaluate_init_rb(initializer) if has_init_file? silence_warnings do # Allow plugins to reference the current configuration object config = initializer.configuration eval(IO.read(init_path), binding, init_path) end end end In the instances I have seen the failure occur, initializer is a string that is the path to an init.rb file inside a plugin. Has anyone seen this? Is it harmless? Is it because of some plugins not doing the right thing for rails 2? than...
2019 Apr 18
1
[PATCH] Allow the initramfs to be persisted across root changes
...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", "/dev/console", + get_arg(cmdc, cmdv, "drop_capabilities="), false, +- init_path, init_argv); ++ false, init_path, init_argv); + + /* If run_init returned, something went bad */ + fprintf(stderr, "%s: %s: %s\n", progname, errmsg, strerror(errno)); +diff --git a/usr/kinit/run-init/run-init.c b/usr/kinit/run-init/run-init.c +index a14ce7cc..6a4ad3e5 100644 +--- a...
2019 Apr 18
0
[PATCH] Allow the initramfs to be persisted across root changes
...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", "/dev/console", get_arg(cmdc, cmdv, "drop_capabilities="), false, - init_path, init_argv); + false, init_path, init_argv); /* If run_init returned, something went bad */ fprintf(stderr, "%s: %s: %s\n", progname, errmsg, strerror(errno)); diff --git a/usr/kinit/run-init/run-init.c b/usr/kinit/run-init/run-init.c index a14ce7cc..6a4ad3e5 100644 --- a/usr/ki...
2019 Apr 28
0
[klibc:master] run-init: Allow the initramfs to be persisted across root changes
...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", "/dev/console", get_arg(cmdc, cmdv, "drop_capabilities="), false, - init_path, init_argv); + false, init_path, init_argv); /* If run_init returned, something went bad */ fprintf(stderr, "%s: %s: %s\n", progname, errmsg, strerror(errno)); diff --git a/usr/kinit/run-init/run-init.c b/usr/kinit/run-init/run-init.c index a14ce7cc..6a4ad3e5 100644 --- a/usr/ki...
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
...+++++++++++++++++++++++++-------------- 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] = strrchr(init_path, '/') + 1; errmsg = run_init("/root", "/dev/console", - get_arg(cmdc, cmdv, "drop_capabilities="), + get_arg(cmdc, cmdv, "drop_capabilities="), false, init_path, init_argv); /* If run_init returned, something went bad */ diff --g...
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
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
2010 Apr 28
1
[PATCH] RFC: Running initscripts from kinit
...* Execute each script */ + for (i = 0; i < used_count; i++) { + sprintf(buf, "%s/%s", INITD, names[i]); + system(buf); + } +out: + for (i = 0; i < used_count; i++) + free(names[i]); + free(names); + closedir(dir); +} + /* This is the argc and argv we pass to init */ const char *init_path; int init_argc; @@ -288,6 +356,8 @@ int main(int argc, char *argv[]) check_path("/root"); do_mounts(cmdc, cmdv); + do_runscripts(); + if (mnt_procfs) { umount2("/proc", 0); mnt_procfs = 0; -- 1.7.0.1
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
2005 Sep 08
4
Booting FreeBSD diskless in DomU
...ddr[0] extra += ",boot.netif.netmask="+netmask extra = ",vfs.root.mountfrom=nfs:10.0.0.19:/FreeBSD53" extra += ",boot_verbose=yes" extra += ",boot_single=yes" #extra += ",boot_gdb=yes" #extra += ",boot_gdb_pause=yes" #cmdline_ip += ",init_path=/sbin:/sbin/init" # there is no real MAC address - need hack in device driver # cmdline_ip += ",boot.netif.hwaddr=00:00:00:00:00:00" # cmdline_ip += ",boot.nfsroot.server="+nfsserv # try: # cmdline_ip += ",boot.nfsroot.path="+nfspath # except: # cmdline_ip +...
2006 Mar 06
1
Wins Installation problem on solairs x86 version 5.10
Follwoing errors are shown while installation. Any quick help will be highly appriciated. config.c: In function `init_server_dir': config.c:217: warning: right shift count >= width of type config.c: In function `init_paths': config.c:256: warning: unsigned int format, uid_t arg (arg 3) mmap.c: In function `try_mmap_fixed': mmap.c:107: warning: implicit declaration of function `perror' ./parser.y: conflicts: 12 shift/reduce ./parser.y: conflicts: 12 shift/reduce ./parser.y: conflicts: 5 shift/reduce ./par...
2006 Apr 12
1
powerd not behaving with an Asus A8V-MX and Athlon 64 X2 3800+
....1.minimum_cmd_size: 10 kern.disks: da1 da0 cd0 ad6 ad4 kern.geom.debugflags: 0 kern.geom.collectstats: 1 kern.geom.mirror.sync_requests: 2 kern.geom.mirror.disconnect_on_failure: 1 kern.geom.mirror.idletime: 5 kern.geom.mirror.timeout: 4 kern.geom.mirror.debug: 0 kern.elf32.fallback_brand: -1 kern.init_path: /sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init:/stand/sysinstall kern.init_shutdown_timeout: 120 kern.acct_suspend: 2 kern.acct_resume: 4 kern.acct_chkfreq: 15 kern.acct_suspended: 0 kern.cp_time: 62 0 155 49 5247 kern.openfiles: 90 kern.kq_calloutmax: 4096 kern.stackprot: 7 kern.ps_arg_cache_...