[Pkg-sysvinit-devel] Bug#339992: sysvinit: shutdown ignores "-a" option

Mike O'Connor stew at vireo.org
Sun Nov 20 06:03:34 UTC 2005


Package: sysvinit
Version: 2.86.ds1-4
Severity: normal

The shutdown manpage states that passing "-a" to shutdown should check
/etc/shutdown.allow.  This doesn't seem to be happening.  Here is an
strace of a user who is in /etc/shutdown.allow executing "/sbin/shutdown
-a".  as can be seen front this log, /etc/shutdown.allow is never
consulted.
----------------------
execve("/sbin/shutdown", ["/sbin/shutdown", "-a"], [/* 26 vars */]) = 0
uname({sys="Linux", node="cuttle", ...}) = 0
brk(0)                                  = 0x804d000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fa2000
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=36076, ...}) = 0
old_mmap(NULL, 36076, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f99000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300O\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1266800, ...}) = 0
old_mmap(NULL, 1276860, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e61000
old_mmap(0xb7f93000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x131000) = 0xb7f93000
old_mmap(0xb7f97000, 7100, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f97000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e60000
mprotect(0xb7f93000, 4096, PROT_READ)   = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e606c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f99000, 36076)               = 0
getuid32()                              = 104
geteuid32()                             = 104
setuid32(104)                           = 0
getuid32()                              = 104
write(2, "shutdown: you must be root to do"..., 39) = 39
exit_group(1)                           = ?


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages sysvinit depends on:
ii  coreutils                     5.2.1-2.1  The GNU core utilities
ii  initscripts                   2.86.ds1-4 Standard scripts needed for bootin
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an
ii  libselinux1                   1.26-1     SELinux shared libraries
ii  libsepol1                     1.8-1      Security Enhanced Linux policy lib
ii  sysv-rc                       2.86.ds1-4 Standard boot mechanism using syml

sysvinit recommends no packages.

-- no debconf information




More information about the Pkg-sysvinit-devel mailing list