- Fix SELinux attributes display issue (#439686)

This commit is contained in:
Tomas Bzatek 2008-04-03 15:15:12 +00:00
parent 6a99107147
commit 1e01e5c8c3
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,13 @@
Index: libnautilus-private/nautilus-file.c
===================================================================
--- libnautilus-private/nautilus-file.c (revision 14026)
+++ libnautilus-private/nautilus-file.c (working copy)
@@ -1799,7 +1799,7 @@
eel_ref_str_unref (file->details->mime_type);
file->details->mime_type = eel_ref_str_get_unique (mime_type);
- selinux_context = g_file_info_get_attribute_string (info, "selinux:context");
+ selinux_context = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_SELINUX_CONTEXT);
if (eel_strcmp (file->details->selinux_context, selinux_context) != 0) {
changed = TRUE;
g_free (file->details->selinux_context);

View File

@ -19,7 +19,7 @@
Name: nautilus
Summary: Nautilus is a file manager for GNOME
Version: 2.22.1
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2+
Group: User Interface/Desktops
Source: http://download.gnome.org/sources/%{name}/2.22/%{name}-%{version}.tar.bz2
@ -61,6 +61,7 @@ BuildRequires: startup-notification-devel >= %{startup_notification_version}
BuildRequires: libexif-devel >= %{libexif_version}
BuildRequires: exempi-devel >= %{exempi_version}
BuildRequires: gettext
BuildRequires: libselinux-devel
# For intltool:
BuildRequires: perl(XML::Parser) >= 2.31-16
@ -85,6 +86,9 @@ Patch6: nautilus-2.22.1-dynamic-search.patch
Patch7: rtl-fix.patch
Patch8: nautilus-2.22.1-hide-white-screen.patch
# patch from head
Patch9: nautilus-2.22.1-show-selinux.diff
%description
Nautilus integrates access to files, applications, media,
@ -121,6 +125,7 @@ for writing nautilus extensions.
%patch6 -p1 -b .dynamic-search
%patch7 -p1 -b .rtl-fix
%patch8 -p1 -b .hide-white-screen
%patch9 -p0 -b .selinux
%build
@ -231,6 +236,9 @@ fi
%{_libdir}/*.so
%changelog
* Thu Apr 3 2008 Tomas Bzatek <tbzatek@redhat.com> - 2.22.1-4
- Fix SELinux attributes display issue (#439686)
* Wed Apr 2 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.1-3
- Fix the build to include tracker and beagle support again