Package: cpushare
Version: 0.48-4
Severity: grave
Tags: patch
User: base-pas...@packages.debian.org
Usertags: shell-fallout

In base-passwd 3.5.30, I changed nobody's shell to /usr/sbin/nologin (a
change that I really should have made about ten years ago).  This has
unfortunately had a bit of collateral damage:

  Setting up cpushare (0.48-4) ...
  [FAIL] Starting CPUShare daemon...[....]  kernel was not built with 
CONFIG_SECCOMP=y failed!

My apologies for this.  It's fortunately easily fixable:

  * Pass "-s /bin/sh" to "su nobody" to cope with the change of nobody's
    shell in base-passwd 3.5.30.

diff -u cpushare-0.48/debian/cpushare.init cpushare-0.48/debian/cpushare.init
--- cpushare-0.48/debian/cpushare.init
+++ cpushare-0.48/debian/cpushare.init
@@ -39,7 +39,7 @@
 case "$1" in
   start)
        log_begin_msg "Starting CPUShare daemon..."
-       if ! su nobody -c /usr/lib/cpushare/seccomp-test >/dev/null 2>&1; then
+       if ! su nobody -s /bin/sh -c /usr/lib/cpushare/seccomp-test >/dev/null 
2>&1; then
            log_begin_msg " kernel was not built with CONFIG_SECCOMP=y"
            log_end_msg 1
            exit 0

Sorry,

-- 
Colin Watson                                       [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to