Changeset View
Changeset View
Standalone View
Standalone View
main.cpp
Show All 23 Lines | |||||
24 | #include <KLocalizedString> | 24 | #include <KLocalizedString> | ||
25 | #include <KCrash> | 25 | #include <KCrash> | ||
26 | #include <KDBusService> | 26 | #include <KDBusService> | ||
27 | 27 | | |||
28 | #include <QSessionManager> | 28 | #include <QSessionManager> | ||
29 | 29 | | |||
30 | #include "policykitkde.h" | 30 | #include "policykitkde.h" | ||
31 | 31 | | |||
32 | #if HAVE_SYS_PRCTL_H | ||||
33 | #include <sys/prctl.h> | ||||
34 | #endif | ||||
35 | | ||||
32 | int main(int argc, char *argv[]) | 36 | int main(int argc, char *argv[]) | ||
33 | { | 37 | { | ||
38 | // disable ptrace | ||||
39 | #if HAVE_PR_SET_DUMPABLE | ||||
40 | prctl(PR_SET_DUMPABLE, 0); | ||||
41 | #endif | ||||
42 | | ||||
34 | KLocalizedString::setApplicationDomain("polkit-kde-authentication-agent-1"); | 43 | KLocalizedString::setApplicationDomain("polkit-kde-authentication-agent-1"); | ||
35 | KAboutData aboutData("polkit-kde-authentication-agent-1", i18n("PolicyKit1 KDE Agent"), POLKIT_KDE_1_VERSION); | 44 | KAboutData aboutData("polkit-kde-authentication-agent-1", i18n("PolicyKit1 KDE Agent"), POLKIT_KDE_1_VERSION); | ||
36 | aboutData.addLicense(KAboutLicense::GPL); | 45 | aboutData.addLicense(KAboutLicense::GPL); | ||
37 | aboutData.addCredit(i18n("(c) 2009 Red Hat, Inc.")); | 46 | aboutData.addCredit(i18n("(c) 2009 Red Hat, Inc.")); | ||
38 | aboutData.addAuthor(i18n("Lukáš Tinkl"), i18n("Maintainer"), "ltinkl@redhat.com"); | 47 | aboutData.addAuthor(i18n("Lukáš Tinkl"), i18n("Maintainer"), "ltinkl@redhat.com"); | ||
39 | aboutData.addAuthor(i18n("Jaroslav Reznik"), i18n("Former maintainer"), "jreznik@redhat.com"); | 48 | aboutData.addAuthor(i18n("Jaroslav Reznik"), i18n("Former maintainer"), "jreznik@redhat.com"); | ||
40 | aboutData.setProductName("policykit-kde/polkit-kde-authentication-agent-1"); | 49 | aboutData.setProductName("policykit-kde/polkit-kde-authentication-agent-1"); | ||
41 | 50 | | |||
Show All 19 Lines |