~ubuntu-core-dev/ubuntu/raring/apport/ubuntu

« back to all changes in this revision

Viewing changes to debian/apport.upstart

Enable suid_dumpable (core dumps of setuid binaries). This has
always been safe for us, as we set a core pipe handler, but the
kernel now protects against one not being set:
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-
raring.git;a=blob;f=Documentation/sysctl/fs.txt;h=88152f214f48cb69c6
43d4bf2ff2ac9a61ad2eb0;hb=HEAD (LP: #1194541).

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        rm -f /var/lib/pm-utils/resume-hang.log
31
31
    fi
32
32
 
 
33
    echo 2 > /proc/sys/fs/suid_dumpable
33
34
    echo "|/usr/share/apport/apport %p %s %c" > /proc/sys/kernel/core_pattern
34
35
end script
35
36
 
45
46
    then
46
47
        exit 1
47
48
    else
 
49
        echo 0 > /proc/sys/fs/suid_dumpable
48
50
        echo "core" > /proc/sys/kernel/core_pattern
49
51
    fi
50
52
end script