nautilus/nautilus-2.22.1-show-selinux.diff

14 lines
674 B
Diff
Raw Normal View History

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);