diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/msec/msec.png | bin | 0 -> 2193 bytes | |||
-rwxr-xr-x | src/msec/msecgui.py | 18 |
3 files changed, 20 insertions, 0 deletions
@@ -47,6 +47,8 @@ install: all install -m755 src/msec/$$i $(RPM_BUILD_ROOT)/usr/sbin ; \ done cp conf/perm.* conf/server.* conf/level.* $(RPM_BUILD_ROOT)/etc/security/msec + # install banner + install -m755 src/msec/msec.png $(RPM_BUILD_ROOT)/usr/share/msec mkdir -p $(RPM_BUILD_ROOT)/var/log mkdir -p $(RPM_BUILD_ROOT)/var/log/security diff --git a/src/msec/msec.png b/src/msec/msec.png Binary files differnew file mode 100644 index 0000000..373b691 --- /dev/null +++ b/src/msec/msec.png diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py index 90e9721..bc0120e 100755 --- a/src/msec/msecgui.py +++ b/src/msec/msecgui.py @@ -8,6 +8,7 @@ import sys import string import getopt import signal +import traceback import Queue # PyGTK @@ -88,6 +89,7 @@ SAVE_SETTINGS_TEXT=_("""Save and apply new configuration?""") # gui-related settings DEFAULT_SPACING=5 +BANNER="msec.png" class MsecGui: """Msec GUI""" @@ -180,6 +182,22 @@ class MsecGui: menuitem.set_sensitive(False) menu.add(menuitem) + # creating logo + banner = gtk.HBox(homogeneous=False, spacing=10) + try: + # logo + image = gtk.Image() + pixbuf = gtk.gdk.pixbuf_new_from_file(BANNER) + image.set_from_pixbuf(pixbuf) + banner.pack_start(image, False, False) + label = gtk.Label(_("MSEC: System Security and Audit")) + label.modify_font(pango.FontDescription("13")) + banner.pack_start(label, False, False) + main_vbox.pack_start(banner, False, False) + except: + traceback.print_exc() + print "Not found" + # creating tabs self.notebook = gtk.Notebook() main_vbox.add(self.notebook) |