Displaying 20 results from an estimated 500 matches similar to: "[patch] trivial cleanup"
2005 Jan 05
1
[PATCH] kinit/kinit.c
A patch for a few more hiccups and trivialities in kinit.c:
* The check_path() calls check for "/root" and "/old_root" - I believe
that should be "/root" and "/root/old_root".
* chdir("/") is recommended after pivot_root()
* init_argv[0] isn't set properly to the basename pointed to by char *s
- this fix also eliminates six lines of
2012 May 04
2
[PATCH] run-init: add drop_capabilities support
Building on the work in ff0a614bd724f6c4c6a5014a9955dc1bc028f336,
this moves the capability code down into the run-init library, so that
run-init can use it as well, via the new "-d" flag.
Signed-off-by: Kees Cook <kees at outflux.net>
---
usr/kinit/Kbuild | 3 +--
usr/kinit/capabilities.h | 10 ++++++++++
usr/kinit/kinit.c | 6 +++---
2011 Aug 03
1
[PATCH v2] kinit: Add drop_capabilities support.
This patch adds the ability to kinit to allow the dropping of POSIX
capabilities.
kinit is modified by this change, such that it understands the new
kernel command line "drop_capabilities=" that specifies a comma
separated list of capability names that should be dropped before
switching over to the next init in the boot strap (typically on the root
disk).
When processing capabilities
2011 Aug 03
2
[PATCH v3 0/2] Support drop directories directly from kinit
This patchset applies to klibc mainline.
This patchset introduces the ability to kinit to execute scripts or
executable files present in in the initramfs before switching over to
the root filesystem.
This functionality is implemented in a newly introduced run_parts()
call, which calls scandir() to iterate through files which in then
executes in sequence.
run_parts() is also available as a
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline.
This patchset introduces the ability to kinit to execute scripts or
executable files present in in the initramfs before switching over to
the root filesystem.
It is implemented by first implementing scandir() and alphasort() as
present in POSIX.1-2008 in klibc itself, and then using that as the
basis for iterating and executing files via a run_scripts()
2010 Apr 28
1
[PATCH] RFC: Running initscripts from kinit
For our platforms, we'd like to embed several different userland scripts /
programs that are executed before we have mounted the root filesystem as part
of the initramfs payload.
Specifically, I'd like to have multiple scripts executed before do_mounts(), so
I coded up this simple do_initscripts function that executes all executables
found in /etc/init.d in alphabetically sorted order.
I
2006 May 10
1
[patch] kinit cmdline handling change
Following mail advice from maximilian attems (thanks).
The following patch changes 2 parts of kinit's command line parameter handling.
1) Parse command line parameters passed to kinit *before*
/proc/cmdline, in order to allow overrides
2) Pass this resultant command line to the init program, rather than
forcing the kinit caller to pass all /proc/cmdline parameters to the
kinit call.
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
Add support for scandir() and alphasort() as defined in POSIX.1-2008.
Signed-off-by: Mike Waychison <mikew at google.com>
---
usr/include/dirent.h | 7 +++++
usr/klibc/Kbuild | 2 +
usr/klibc/scandir.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 84 insertions(+), 1 deletions(-)
create mode 100644 usr/klibc/scandir.c
diff --git
2016 Jan 17
1
[PATCH klibc] run-init: Add dry-run mode
initramfs-tools wants to validate the real init program before running
it, as there is no way out once it has exec'd run-init. This is
complicated by the increasing use of symlinks for /sbin/init and for
/sbin itself. We can't simply resolve them with 'readlink -f' because
any absolute symlinks will be resolved using the wrong root. Add a
dry-run mode (-n option) to run-init
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
2019 Apr 18
1
[PATCH] Allow the initramfs to be persisted across root changes
systemd supports switching back to the initramfs during shutdown in
order to make it easier to clean up the root file system. This is
desirable in order to allow us to remove keys from RAM before rebooting,
making it harder to obtain confidential information by rebooting into an
environment that scrapes RAM contents.
---
debian/changelog | 4 +
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
Commit-ID: 10059fddba9f8bec6aeb0d37d217df6d65e64c3b
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=10059fddba9f8bec6aeb0d37d217df6d65e64c3b
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Sun, 17 Jan 2016 19:50:28 +0000
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Wed, 2 Jan 2019 03:08:04 +0000
[klibc] run-init: Add dry-run mode
2012 Jan 09
3
[PATCH 1/3] launch: move the filename checking to a wrapper
Move the filename's comma character checking to a wrapper.
Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
src/launch.c | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/launch.c b/src/launch.c
index ca89b63..8eaaac8 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -277,6 +277,16 @@ valid_format_iface (const char *str)
return
2006 Jun 06
1
arch.cmd file and init args
I don't really understand the necessity of the /arch.cmd file to be
parsed before /proc/cmdline. It seems simpler to just parse the
program args first before /proc/cmdline. The whole point, as far as I
see, is to composite kernel params based on scripts and/or the
bootloader params. It makes sense to say "arg1=a" should override
(come before) any other arg1, but I see no need to
2012 Apr 12
5
[PATCH 0/4] libguestfs cannot open disk images which are symlinks to files that contain ':' (colon) character (RHBZ#812092).
Note: This is a regression in RHEL 6.3. Please review this patch
urgently.
The description of the bug is here:
https://bugzilla.redhat.com/show_bug.cgi?id=812092
This patch set attempts to fix the problem conservatively, because
it's a very high risk codepath and very late in the development of
RHEL 6.3.
The first patch reverts the behaviour of calling realpath(3) and
checking for
2013 May 07
2
[PATCH] Btrfs: fix passing wrong arg gfp_t to decide the correct allocation mode
If you look the code carefully, you will see all the tree_mod_alloc()
has to use GFP_ATOMIC. However, the original code pass the wrong arg
gfp_t in some places, this dosen''t cause any problems, because in the
tree_mod_alloc(), it ignores arg gfp_t and just use GFP_ATOMIC directly,
this is not good.
However, i think we should try best not to allocate with GFP_ATOMIC, so
i keep the gfp_t
2010 May 19
10
R: default subvolume abilities/restrictions
Hi Anthony,
I think that for you may be interested to read this thread
http://kerneltrap.org/mailarchive/linux-btrfs/2009/11/20/6588643/thread
and to read a my blog about this argument
http://kreijack.blogspot.com/2010/01/linux-btrfs-example-of-layout.html
Regards
Goffredo
>----Messaggio originale----
>Da: anthony@extof.me
>Data: 19/05/2010 8.50
>A:
2019 Apr 18
0
[PATCH] Allow the initramfs to be persisted across root changes
systemd supports switching back to the initramfs during shutdown in
order to make it easier to clean up the root file system. This is
desirable in order to allow us to remove keys from RAM before rebooting,
making it harder to obtain confidential information by rebooting into an
environment that scrapes RAM contents.
Signed-off-by: Matthew Garrett <mjg59 at google.com>
---
2019 Apr 28
0
[klibc:master] run-init: Allow the initramfs to be persisted across root changes
Commit-ID: 603f1bb024a03d9c50a89e7256ae7814292baf06
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=603f1bb024a03d9c50a89e7256ae7814292baf06
Author: Matthew Garrett <matthewgarrett at google.com>
AuthorDate: Thu, 18 Apr 2019 12:12:27 -0700
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 20 Apr 2019 17:11:34 +0100
[klibc] run-init: Allow
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