This file is indexed.

/usr/share/pyshared/PreludeNotify/ErrorDialog.py is in prelude-notify 0.9.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright (C) 2008 PreludeIDS Technologies. All Rights Reserved.
# Author: Sebastien Tricaud <toady@inl.fr>
#
# This file is part of the Prelude-Notify program.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

import os
import gtk

class ErrorDialog:
        def __init__(self, content):
                dialog = gtk.MessageDialog(None, 0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, content)

                dialog.show_all()
                response = dialog.run()

                dialog.destroy()

class CreateProfile(ErrorDialog):
        def __init__(self, profilename, manager_addr):
                dlgstring = "Please register your Prelude agent. Run as root:\nprelude-admin register \"%s\" \"idmef:r\" %s --uid %d --gid %d" % (profilename, manager_addr, os.getuid(), os.getgid())
                ErrorDialog.__init__(self, dlgstring)