FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 07-02-2008, 12:34 PM
martin f krafft
 
Default Bug#488969: please warn if a non-executable file in scripts/*/* is found

Package: initramfs-tools
Version: 0.92b
Severity: wishlist

initramfs runs executable scripts in scripts/*/* at various stages.
Albeit an error by the user or the package, scripts without
executable permissions get copied to the initrd by the hooks, but
then they don't get executed.

Maybe initramfs could warn about files in scripts/*/* it would
install, which aren't executable?

-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii cpio 2.9-13 GNU cpio -- a program to manage ar
ii findutils 4.4.0-2 utilities for finding files--find,
ii klibc-utils 1.5.11-2 small utilities built with klibc f
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii udev 0.114-2 /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii busybox 1:1.10.2-1 Tiny utilities for small and embed

-- no debconf information


--
.'`. martin f. krafft <madduck@debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
 
Old 07-02-2008, 12:52 PM
maximilian attems
 
Default Bug#488969: please warn if a non-executable file in scripts/*/* is found

On Wed, Jul 02, 2008 at 02:34:42PM +0200, martin f krafft wrote:
> Package: initramfs-tools
> Version: 0.92b
> Severity: wishlist
>
> initramfs runs executable scripts in scripts/*/* at various stages.
> Albeit an error by the user or the package, scripts without
> executable permissions get copied to the initrd by the hooks, but
> then they don't get executed.
>
> Maybe initramfs could warn about files in scripts/*/* it would
> install, which aren't executable?

it does warn on verbose mode irc.

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-04-2008, 10:54 PM
maximilian attems
 
Default Bug#488969: please warn if a non-executable file in scripts/*/* is found

On Wed, 02 Jul 2008, martin f krafft wrote:

> initramfs runs executable scripts in scripts/*/* at various stages.
> Albeit an error by the user or the package, scripts without
> executable permissions get copied to the initrd by the hooks, but
> then they don't get executed.
>
> Maybe initramfs could warn about files in scripts/*/* it would
> install, which aren't executable?

chmod 666 /usr/share/initramfs-tools/hooks/legacylvm

update-initramfs -u -v | grep legacy
/usr/share/initramfs-tools/hooks/legacylvm ignored: not executable

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-05-2008, 04:33 PM
martin f krafft
 
Default Bug#488969: please warn if a non-executable file in scripts/*/* is found

also sprach maximilian attems <max@stro.at> [2008.07.05.0054 +0200]:
> > initramfs runs executable scripts in scripts/*/* at various stages.
> > Albeit an error by the user or the package, scripts without
> > executable permissions get copied to the initrd by the hooks, but
> > then they don't get executed.
> >
> > Maybe initramfs could warn about files in scripts/*/* it would
> > install, which aren't executable?
>
> chmod 666 /usr/share/initramfs-tools/hooks/legacylvm

I was talking about scripts.

> update-initramfs -u -v | grep legacy
> /usr/share/initramfs-tools/hooks/legacylvm ignored: not executable

Without -v, it seems that files in /etc/initramfs-tools are copied
but remain non-executable. As a result, they won't be run. I think
initramfs-tools should be reporting this, and the above hooks
message as a warning, not requiring -v for it.

--
.'`. martin f. krafft <madduck@debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems

linux: because a pc is a terrible thing to waste
 
Old 07-05-2008, 08:28 PM
maximilian attems
 
Default Bug#488969: please warn if a non-executable file in scripts/*/* is found

On Sat, Jul 05, 2008 at 06:33:00PM +0200, martin f krafft wrote:
> also sprach maximilian attems <max@stro.at> [2008.07.05.0054 +0200]:
> > > initramfs runs executable scripts in scripts/*/* at various stages.
> > > Albeit an error by the user or the package, scripts without
> > > executable permissions get copied to the initrd by the hooks, but
> > > then they don't get executed.
> > >
> > > Maybe initramfs could warn about files in scripts/*/* it would
> > > install, which aren't executable?
> >
> > chmod 666 /usr/share/initramfs-tools/hooks/legacylvm
>
> I was talking about scripts.

hmmm?
that is an script.

> > update-initramfs -u -v | grep legacy
> > /usr/share/initramfs-tools/hooks/legacylvm ignored: not executable
>
> Without -v, it seems that files in /etc/initramfs-tools are copied
> but remain non-executable. As a result, they won't be run. I think
> initramfs-tools should be reporting this, and the above hooks
> message as a warning, not requiring -v for it.

why should a user be bothered if a maintainer fucks up the installation?
aboves indication is only useful while developing a hook and looking at
the -v output isn't demanding too much.

aboves warning could be more screaming

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-05-2008, 08:44 PM
martin f krafft
 
Default Bug#488969: please warn if a non-executable file in scripts/*/* is found

also sprach maximilian attems <max@stro.at> [2008.07.05.2228 +0200]:
> hmmm?
> that is an script.

yes, but unlike e.g. scripts/local-top scripts, it's a hook script.

> why should a user be bothered if a maintainer fucks up the installation?

because the system may be left unbootable?

--
.'`. martin f. krafft <madduck@debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
 
Old 07-05-2008, 08:51 PM
maximilian attems
 
Default Bug#488969: please warn if a non-executable file in scripts/*/* is found

On Sat, Jul 05, 2008 at 10:44:27PM +0200, martin f krafft wrote:
> also sprach maximilian attems <max@stro.at> [2008.07.05.2228 +0200]:
> > hmmm?
> > that is an script.
>
> yes, but unlike e.g. scripts/local-top scripts, it's a hook script.

okay for the boot scripts the same rules apply then for the hook
scripts.

> > why should a user be bothered if a maintainer fucks up the installation?
>
> because the system may be left unbootable?

the maintainer should test such stuff before uploading.

so currently i don't see much args beside making the warning more
obvious.

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-06-2008, 07:51 AM
martin f krafft
 
Default Bug#488969: please warn if a non-executable file in scripts/*/* is found

also sprach maximilian attems <max@stro.at> [2008.07.05.2251 +0200]:
> the maintainer should test such stuff before uploading.

if s/he does, then there won't be a warning and the user won't even
notice a difference.

also, this is about the user putting stuff into /etc, which is
precisely how I rendered my system unbootable.

--
.'`. martin f. krafft <madduck@debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems

Most Intelligent Customers Realise Our Software Only Fools Them.
 

Thread Tools




All times are GMT. The time now is 09:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org