2006-07-18 19:49:13 +00:00
|
|
|
Summary: Helps troubleshoot SELinux problems
|
|
|
|
Name: setroubleshoot
|
2006-08-22 14:51:47 +00:00
|
|
|
Version: 0.29
|
2006-08-17 16:34:00 +00:00
|
|
|
Release: 1
|
2006-07-18 19:49:13 +00:00
|
|
|
License: GPL
|
|
|
|
Group: Applications/System
|
|
|
|
URL: http://www.redhat.com/
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
Source1: setroubleshoot.init
|
|
|
|
Source2: setroubleshoot.logrotate
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
2006-07-19 18:34:50 +00:00
|
|
|
BuildRequires: perl-XML-Parser
|
2006-08-11 16:17:47 +00:00
|
|
|
Requires: gnome-python2-gtkhtml2
|
2006-07-18 19:49:13 +00:00
|
|
|
|
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
%define pkgpythondir %{python_sitelib}/%{name}
|
|
|
|
%define pkgdocdir %{_datadir}/doc/%{name}-%{version}
|
|
|
|
%define pkgdatadir %{_datadir}/%{name}
|
|
|
|
%define pkglibexecdir %{_prefix}/libexec/%{name}
|
|
|
|
%define pkgvardatadir %{_localstatedir}/lib/%{name}
|
|
|
|
%define pkgrundir %{_localstatedir}/run/%{name}
|
|
|
|
%define pkgconfigdir %{_sysconfdir}/%{name}
|
|
|
|
%define pkglogdir %{_localstatedir}/log/%{name}
|
|
|
|
|
2006-08-17 16:34:00 +00:00
|
|
|
Requires: audit >= audit-1.2.5-7
|
2006-08-22 14:51:47 +00:00
|
|
|
Requires: audit-libs-python
|
2006-07-18 19:49:13 +00:00
|
|
|
Requires: libselinux >= 1.30.15-1
|
|
|
|
Requires: pygtk2 >= 2.9.2
|
2006-07-22 11:11:03 +00:00
|
|
|
Requires: notify-python
|
2006-07-21 23:08:43 +00:00
|
|
|
|
|
|
|
BuildRequires: intltool gettext python
|
2006-07-18 19:49:13 +00:00
|
|
|
|
2006-08-17 16:34:00 +00:00
|
|
|
Requires(post): /sbin/chkconfig
|
|
|
|
Requires(post): /sbin/service
|
|
|
|
Requires(post): /usr/bin/update-desktop-database
|
|
|
|
|
2006-08-12 06:27:34 +00:00
|
|
|
Requires(preun): /sbin/chkconfig
|
|
|
|
Requires(preun): /sbin/service
|
2006-07-18 19:49:13 +00:00
|
|
|
|
2006-08-17 16:34:00 +00:00
|
|
|
Requires(postun): /usr/bin/update-desktop-database
|
|
|
|
|
2006-07-18 19:49:13 +00:00
|
|
|
%description
|
|
|
|
Provides tools to help diagnose SELinux problems. When AVC messages
|
|
|
|
are generated an alert can be generated that will give information
|
|
|
|
about the problem and help track its resolution. Alerts can be configured
|
|
|
|
to user preference. The same tools can be run on existing log files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
%{__install} -D -m755 %{SOURCE1} %{buildroot}/etc/rc.d/init.d/%{name}
|
|
|
|
%{__install} -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
2006-08-21 15:18:36 +00:00
|
|
|
touch %{buildroot}%{pkgvardatadir}/database.xml
|
2006-08-21 23:13:34 +00:00
|
|
|
%find_lang %{name}
|
2006-07-18 19:49:13 +00:00
|
|
|
|
|
|
|
%post
|
2006-08-21 15:18:36 +00:00
|
|
|
[ -f %{pkgvardatadir}/database.xml ] && chmod 644 %{pkgvardatadir}/database.xml
|
2006-07-18 19:49:13 +00:00
|
|
|
/usr/bin/update-desktop-database %{_datadir}/applications
|
|
|
|
/sbin/chkconfig --add %{name}
|
2006-08-17 16:34:00 +00:00
|
|
|
/sbin/service %{name} condrestart >/dev/null 2>&1
|
2006-07-18 19:49:13 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/service %{name} stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del %{name}
|
|
|
|
fi
|
|
|
|
|
2006-08-21 19:44:14 +00:00
|
|
|
%triggerpostun -- setroubleshoot <= 0.25-1
|
|
|
|
/sbin/service %{name} cleardb
|
2006-07-21 13:42:14 +00:00
|
|
|
|
2006-07-18 19:49:13 +00:00
|
|
|
%postun
|
|
|
|
/usr/bin/update-desktop-database %{_datadir}/applications
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2006-08-21 23:13:34 +00:00
|
|
|
%files -f %{name}.lang
|
2006-07-18 19:49:13 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{pkgdocdir}
|
2006-07-27 14:28:34 +00:00
|
|
|
%{_bindir}/*
|
2006-07-18 19:49:13 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{pkgpythondir}
|
|
|
|
%{pkgdatadir}
|
2006-08-21 19:44:14 +00:00
|
|
|
# Note: it is explicitly known the config file is not noreplace,
|
|
|
|
# this is because the config file during active development changes
|
|
|
|
# so much it's worse to be incompatible than lose a user modified value
|
|
|
|
# We'll set it back to noreplace when things stablize
|
|
|
|
%config %{pkgconfigdir}/%{name}.cfg
|
|
|
|
%dir %{pkglogdir}
|
2006-07-18 19:49:13 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
%dir %{pkgrundir}
|
|
|
|
%dir %{pkgvardatadir}
|
2006-08-21 15:18:36 +00:00
|
|
|
%ghost %attr(0644,root,root) %{pkgvardatadir}/database.xml
|
|
|
|
|
2006-07-18 19:49:13 +00:00
|
|
|
/etc/rc.d/init.d/%{name}
|
|
|
|
%{_sysconfdir}/xdg/autostart/*
|
2006-08-11 16:17:47 +00:00
|
|
|
#%{_datadir}/applications/*.desktop
|
2006-07-18 19:49:13 +00:00
|
|
|
%{_datadir}/pixmaps/*png
|
|
|
|
|
|
|
|
%changelog
|
2006-08-22 14:51:47 +00:00
|
|
|
* Tue Aug 22 2006 John Dennis <jdennis@redhat.com> - 0.29-1
|
|
|
|
* fix bug #203479, missing requires of audit-libs-python
|
|
|
|
|
|
|
|
* add support to sealert to listen on a dbus session signal to display
|
|
|
|
the gui. This is needed for when the status icon is not visible and
|
|
|
|
the user wants to see the UI. There is now a seperate program
|
|
|
|
setroubleshoot_launch_gui which emits the signal.
|
|
|
|
|
2006-08-21 23:13:34 +00:00
|
|
|
* Mon Aug 21 2006 Dan Walsh <dwalsh@redhat.com> - 0.28-1
|
|
|
|
- Fix allow_execmem.py file
|
|
|
|
- Add translations
|
|
|
|
|
2006-08-21 19:44:14 +00:00
|
|
|
* Mon Aug 21 2006 John Dennis <jdennis@redhat.com> - 0.27-1
|
|
|
|
* load_plugins() now catches exceptions when a plugin won't load,
|
|
|
|
reports the traceback in the log file, and continues with the next
|
|
|
|
plugin. Previously a bad plugin caused the entire plugin loading
|
|
|
|
to abort and no plugins were loaded.
|
|
|
|
|
|
|
|
* Add "daemon_name" to automake variables, change pid file to match
|
|
|
|
|
|
|
|
* turn off "noreplace" on config file till things settle down a bit
|
|
|
|
|
|
|
|
* browser.py now validates data, also test for missing column data in the
|
|
|
|
cell_data function to avoid exceptions.
|
|
|
|
|
|
|
|
* add stub for analyzie_logfile() rpc call
|
|
|
|
|
|
|
|
* turn off balloon notifications by default in config file,
|
|
|
|
libnotify is just plain busted at this point :-(
|
|
|
|
|
|
|
|
* only the setroubleshootd daemon creates it's log file
|
|
|
|
under /var/log now, the user app's do it in /tmp, change file
|
|
|
|
permissions on /var/log/setroubleshoot back to 0644.
|
|
|
|
|
|
|
|
* sealert now looks up the username rather than hardcoding it to "foo"
|
|
|
|
|
|
|
|
* CamelCase to lowercase_underscore clean up
|
|
|
|
|
|
|
|
* Mon Aug 21 2006 Dan Walsh <dwalsh@redhat.com> - 0.26-1
|
|
|
|
- Zero out datbase.xml for updated browser
|
|
|
|
|
2006-08-21 15:18:36 +00:00
|
|
|
* Mon Aug 21 2006 Dan Walsh <dwalsh@redhat.com> - 0.25-1
|
|
|
|
- Fix 64 bit issue that caused runaway problem
|
|
|
|
|
2006-08-20 14:37:32 +00:00
|
|
|
* Sun Aug 20 2006 Dan Walsh <dwalsh@redhat.com> - 0.24-1
|
|
|
|
- add missing runcmd
|
|
|
|
|
2006-08-17 16:34:00 +00:00
|
|
|
* Thu Aug 17 2006 John Dennis <jdennis@redhat.com> - 0.23-1
|
|
|
|
|
|
|
|
* fix for bug #202206, require correct version of audit,
|
|
|
|
fixes for audit connection.
|
2006-08-12 06:27:34 +00:00
|
|
|
|
2006-08-10 12:27:33 +00:00
|
|
|
* Thu Aug 10 2006 Dan Walsh <dwalsh@redhat.com> - 0.20-1
|
|
|
|
* add html support
|
|
|
|
* remove setroubleshoot_dispatcher
|
2006-08-06 00:22:32 +00:00
|
|
|
|
2006-08-08 17:20:59 +00:00
|
|
|
* Tue Aug 8 2006 Dan Walsh <dwalsh@redhat.com> - 0.19-1
|
|
|
|
|
|
|
|
2006-08-08 Dan Walsh <dwalsh@redhat.com>
|
|
|
|
* Fix up handling of mls ranges in context
|
|
|
|
* Cleanup some pychecker errors
|
|
|
|
|
|
|
|
2006-08-07 John Dennis <jdennis@redhat.com>
|
|
|
|
* add first seen, last seen, and report count to alert detail view
|
|
|
|
|
|
|
|
* make the seen icon work, if the alert has been displayed more
|
|
|
|
than N seconds, mark the alert as having been seen by the user
|
|
|
|
and update the icon is the list view
|
|
|
|
|
|
|
|
* change the schema for the xml data; the database now has a version,
|
|
|
|
there is a local id attached to each signature, the filter list in
|
|
|
|
the siginfo was replaced by a list of per user data, the per user
|
|
|
|
data now contains the filter, seen_flag. Modify all the code which
|
|
|
|
was operating on the filter information to use the new model.
|
|
|
|
|
|
|
|
* fix the xml serialization so that booleans can be used as a basic
|
|
|
|
type and also so that non-string types can be used in element
|
|
|
|
attributes (e.g. int, bool) and the serialization code will
|
|
|
|
automatically convert between python types and strings.
|
|
|
|
|
2006-08-07 22:09:36 +00:00
|
|
|
* Mon Aug 7 2006 Dan Walsh <dwalsh@redhat.com> - 0.18-1
|
|
|
|
- Add dispatcher.py
|
|
|
|
|
|
|
|
* Sat Aug 5 2006 Dan Walsh <dwalsh@redhat.com> - 0.17-1
|
2006-08-06 00:22:32 +00:00
|
|
|
- John Dennis <jdennis@redhat.com>
|
2006-08-07 22:09:36 +00:00
|
|
|
* clean up and rework the timestamp code in util.py so that
|
|
|
|
time zones are handled properly, there were a number of bugs.
|
|
|
|
Hopefully it's correct now because timezone handling is a pain.
|
|
|
|
|
|
|
|
* change the time format in the browser so all times are displayed
|
|
|
|
identically, the friendly time relative format was hard to compare.
|
|
|
|
|
|
|
|
* modify the plugin 'make install' to delete all existing plugin's
|
|
|
|
prior to installing the new ones
|
|
|
|
|
|
|
|
* add popup menu to status icon to choose between browser and
|
|
|
|
alert GUI (not fully connected yet). Several bug fixes related
|
|
|
|
to changing the filter_type from a string to an int.
|
|
|
|
|
|
|
|
* add filter selection to bottom pane, change filter_type from
|
|
|
|
string to integer constant. Enhance how columns are handled.
|
|
|
|
Get init_combo_box to work. Remove unused RPM and Bugzilla
|
|
|
|
fields from bottom pane. Modify the default size of the browser
|
|
|
|
window. Fix missing import in util.py.
|
|
|
|
|
|
|
|
* add ability in broswer to sort on columns, initially the report
|
|
|
|
count column and the last seen date column. The date column now
|
|
|
|
stores a TimeStamp object instead of a string. Add new method
|
|
|
|
to TimeStamp to return a friendly string relative to the current
|
|
|
|
time. The date column in the browser now has a cell data function
|
|
|
|
which invokes the friendly format method of the TimeStamp object.
|
2006-08-06 00:22:32 +00:00
|
|
|
|
|
|
|
* add ability fo serialize to/from xml for classes which can
|
|
|
|
inititialized from strings and serialized as strings (e.g. numbers,
|
|
|
|
TimeStamps, etc.)
|
|
|
|
* add count of how many times a signature is reported, the date
|
|
|
|
when first and last reported, add columns for report count and
|
|
|
|
last date count to browser.
|
|
|
|
* checkpoint browser code, list pane and detail pane now working.
|
|
|
|
* add initial support for browser applet, move some functions which
|
|
|
|
kept getting reused to util.py
|
|
|
|
* add reporting of environment to email alert (email alerts still
|
|
|
|
need work)
|
|
|
|
|
|
|
|
- Dan Walsh <dwalsh@redhat.com>
|
|
|
|
|
|
|
|
* Fix disable_trans.py set_boolean call
|
|
|
|
* Complete all boolean plugins except disable
|
|
|
|
* Change interface to use audit unix domain socket
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 28 2006 Dan Walsh <dwalsh@redhat.com> - 0.16-1
|
|
|
|
- John Dennis <jdennis@redhat.com>
|
|
|
|
* modify SetFilter in server to return errors instead of
|
|
|
|
throwing an exception. Default the filter list on each alert display.
|
|
|
|
* minor tweaks to alert queue handling
|
|
|
|
* fix analyze() parameter list in ftp_is_daemon.py plugin
|
|
|
|
* sealert now responds to pending alerts more correctly, it shows
|
|
|
|
how many pending alerts are in the queue, if you filter the pending
|
|
|
|
alert status is updated, the next alert button will advance you
|
|
|
|
to the next alert in the queue
|
|
|
|
* simplify major pieces of sealert by coalescing common code
|
|
|
|
into subroutines.
|
|
|
|
- Dan Walsh <dwalsh@redhat.com>
|
|
|
|
* Complete all boolean plugins except disable
|
|
|
|
* Make Close button work.
|
|
|
|
* Make setroubleshoot_dispatcher exit if it gets an avc about itself
|
|
|
|
|
2006-07-27 14:28:34 +00:00
|
|
|
* Mon Jul 26 2006 Dan Walsh <dwalsh@redhat.com> - 0.15-1
|
|
|
|
- Karl MacMillan
|
|
|
|
* Add generic templating mechanism to Plugin
|
|
|
|
* Ported all plugins to use templating mechanism
|
|
|
|
|
2006-07-22 19:02:37 +00:00
|
|
|
* Sat Jul 22 2006 Dan Walsh <dwalsh@redhat.com> - 0.13-1
|
|
|
|
- Fixes to plugins
|
|
|
|
- Fixes to dispatcher
|
2006-07-22 11:11:03 +00:00
|
|
|
|
2006-07-22 03:08:40 +00:00
|
|
|
* Fri Jul 21 2006 Dan Walsh <dwalsh@redhat.com> - 0.12-1
|
|
|
|
* Fix problem in dispatcher
|
|
|
|
|
|
|
|
* Fri Jul 21 2006 John Dennis <jdennis@redhat.com> - 0.11-1
|
|
|
|
* add email alerts
|
|
|
|
* stop the status icon from blinking, add notification balloon.
|
|
|
|
|
2006-07-21 13:42:14 +00:00
|
|
|
* Fri Jul 21 2006 Dan Walsh <dwalsh@redhat.com> - 0.10-1
|
|
|
|
- Fix startup order for setrobleshoot
|
|
|
|
- Fix Plugins
|
|
|
|
|
2006-07-20 18:52:17 +00:00
|
|
|
* Tue Jul 20 2006 Dan Walsh <dwalsh@redhat.com> - 0.9-1
|
|
|
|
- Additional Plugins plus a lot of cleanup
|
|
|
|
|
2006-07-19 20:22:42 +00:00
|
|
|
* Mon Jul 19 2006 Dan Walsh <dwalsh@redhat.com> - 0.8-1
|
|
|
|
- Added a bunch more plugins
|
|
|
|
- From 2006-07-19 Karl MacMillan <kmacmill@localhost.localdomain>
|
|
|
|
- Add allow_cvs_read_shadow.py, allow_ftp_use_cifs, allow_ftp_use_nfs, and allow_gssd_read_tmp.
|
|
|
|
- Change AVC to have additional helpers for matching messages.
|
|
|
|
- Change Plugin to work better with more than one solution.
|
|
|
|
|
2006-07-19 14:15:12 +00:00
|
|
|
* Mon Jul 19 2006 Dan Walsh <dwalsh@redhat.com> - 0.7-1
|
2006-07-19 20:22:42 +00:00
|
|
|
- Fix setroubleshoot_dispatcher to catch all information from avc. Much cleaner interface and no longer uses audit2allow cruft.
|
|
|
|
- Remove toolbar from popup window since it did nothing, and I think it looks better without it.
|
|
|
|
- fix allow_execmod plugin to report better data.
|
2006-07-19 14:15:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2006-07-18 19:49:13 +00:00
|
|
|
* Mon Jun 26 2006 John Dennis <jdennis@redhat.com> - 0.3-1
|
|
|
|
- add missing /var/log directory %files section in spec file, and add
|
|
|
|
logrotate script
|
|
|
|
|
|
|
|
* Mon Jun 26 2006 John Dennis <jdennis@redhat.com> - 0.2-1
|
|
|
|
- clean up spec file, reduce rpmlint complaints
|
|
|
|
|
|
|
|
* Fri May 19 2006 John Dennis <jdennis@redhat.com> - 0.1-1
|
|
|
|
- Initial build.
|
|
|
|
|