lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sat, 22 Nov 2008 12:35:34 +0100
From:	Sam Ravnborg <sam@...nborg.org>
To:	"Sally, Gene" <Gene.Sally@...esys.com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2.6.28-rc2] gen_init_cpio expands shell variables in file names

On Wed, Oct 29, 2008 at 09:54:17AM -0400, Sally, Gene wrote:
> Hi,
> 
> This patch modifies gen_init_cpio so that lines that specify files can contain what looks like a shell variable that's expanded during processing.
> 
> For example:
> 
> file /sbin/kinit ${RFS_BASE}/usr/src/klibc/kinit/kinit 0755 0 0
> 
> given RFS_BASE is "/some/directory" in the environment
> 
> would be expanded to
> 
> file /sbin/kinit /some/directory/usr/src/klibc/kinit/kinit 0755 0 0
> 
> If several environment variables appear in a line, they are all expanded with processing happening from left to right.  Undefined variables expand to a null string.  Syntax errors stop processing, letting the existing error handling show the user offending line.
> 
> This patch helps embedded folks who frequently create several RFS directories and then switch between them as they're tuning an initramfs.  Having just been such an embedded folk, this seems the most efficient solution.
> 
> I didn't see a maintainer for this area (forgive me if I overlooked) so I don't know who I should CC for this patch.
> 
> Regards,
> gene

Hi gene.

Applied.

I fixed up the changelog (adding newlines and moving
your Signed-off-by:).
And I had to apply the patch manually as it was somehow broken.

Please see if you can improve this nect time you submit a patch.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ