~ubuntu-branches/ubuntu/wily/acpid/wily

« back to all changes in this revision

Viewing changes to event.c

  • Committer: Package Import Robot
  • Author(s): Tyler Hicks
  • Date: 2011-12-07 16:33:35 UTC
  • Revision ID: package-import@ubuntu.com-20111207163335-2voqr4z50d5tl1b6
Tags: 1:2.0.10-1ubuntu3
* SECURITY UPDATE: Arbitrary code execution in the power button handling
  script (LP: #893821)
  - debian/powerbtn.sh: Ensure that the DBUS_SESSION_BUS_ADDRESS environment
    variable is only read from a process owned by the user that will be
    evaluating the variable.
  - CVE-2011-2777
* SECURITY UPDATE: Unprivileged users may be able to write to directories
  and read files created by event handler scripts
  - event.c: Set a restrictive umask of 0077 before running an event handler
    script. Based on upstream patch.
  - CVE-2011-4578

Show diffs side-by-side

added added

removed removed

Lines of Context:
641
641
                if (acpid_debug && logevents) {
642
642
                        fprintf(stdout, "BEGIN HANDLER MESSAGES\n");
643
643
                }
 
644
                umask(0077);
644
645
                execl("/bin/sh", "/bin/sh", "-c", action, NULL);
645
646
                /* should not get here */
646
647
                acpid_log(LOG_ERR, "execl(): %s", strerror(errno));