Your message dated Sun, 31 Oct 2010 22:17:18 -0500
with message-id <20101101031718.ga29...@burratino>
and subject line Re: dash: Can't open read-only scripts
has caused the Debian Bug report #586736,
regarding [dash] Cannot start system wide scripts
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
586736: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586736
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dash
Version: 0.5.6.1-1~exp0
Severity: serious

I noticed that my system nearly fails to do everything after installing dash
from experimental. The first thing I noticed was
 if [ -x /usr/sbin/etckeeper ]; then etckeeper pre-install; fi
which failed when I tried to install something and the next thing that all
scripts started from my user failed. The problem is that (for whatever reason)
dash opens the files now in read-write mode. Which of course is not possible
when I am an underprivileged user.

execve("/bin/sh", ["/bin/sh", "/usr/bin/xdg-email"], [/* 52 vars */]) = 0
brk(0)                                  = 0x10ff000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fe1891b2000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=148490, ...}) = 0
mmap(NULL, 148490, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe18918d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1432968, ...}) = 0
mmap(NULL, 3541032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fe188c36000
mprotect(0x7fe188d8e000, 2093056, PROT_NONE) = 0
mmap(0x7fe188f8d000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x157000) = 0x7fe188f8d000
mmap(0x7fe188f92000, 18472, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fe188f92000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fe18918c000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fe18918b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fe18918a000
arch_prctl(ARCH_SET_FS, 0x7fe18918b700) = 0
mprotect(0x7fe188f8d000, 16384, PROT_READ) = 0
mprotect(0x7fe1891b4000, 4096, PROT_READ) = 0
munmap(0x7fe18918d000, 148490)          = 0
getpid()                                = 7577
rt_sigaction(SIGCHLD, {0x40f700, ~[RTMIN RT_1], SA_RESTORER, 0x7fe188c681e0}, 
NULL, 8) = 0
geteuid()                               = 1000
brk(0)                                  = 0x10ff000
brk(0x1120000)                          = 0x1120000
getppid()                               = 7576
stat("/home/emil", {st_mode=S_IFDIR|0751, st_size=20480, ...}) = 0
stat(".", {st_mode=S_IFDIR|0751, st_size=20480, ...}) = 0
open("/usr/bin/xdg-email", O_RDWR)      = -1 EACCES (Permission denied)
write(2, "/bin/sh: ", 9)                = 9
write(2, "Can't open /usr/bin/xdg-email", 29) = 29
write(2, "\n", 1)                       = 1
exit_group(127)                         = ?


--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.35-trunk-amd64

Debian Release: squeeze/sid
  500 unstable        www.debian-multimedia.org 
  500 unstable        ftp.debian.org 
  500 testing         ftp.debian.org 
  500 stable          ftp.debian.org 
    1 experimental    ftp.debian.org 

--- Package information. ---
Depends           (Version) | Installed
===========================-+-============
debianutils       (>= 2.15) | 3.4
dpkg            (>= 1.15.0) | 1.15.8.4


Package's Recommends field is empty.

Package's Suggests field is empty.




-- 
Emil Langrock



--- End Message ---
--- Begin Message ---
Version: 0.5.6.1-1~exp0+RM

Krzysztof A. Sobiecki wrote:

> sob...@solis:/tmp$ ./a.sh 
> /bin/sh: Can't open ./a.sh

Removed from experimental[1].  Thanks, Gerrit.

[1] http://bugs.debian.org/595663


--- End Message ---

Reply via email to