- better SELinux patch by <dwalsh@redhat.com>

This commit is contained in:
Radek Vokál 2007-05-22 10:49:15 +00:00
parent 8add39743b
commit 5fc17560d7
2 changed files with 24 additions and 1 deletions

View File

@ -203,3 +203,23 @@
case '?':
case 'h':
usage();
--- net-tools-1.60/netstat.c.sel 2007-05-21 14:02:08.000000000 -0400
+++ net-tools-1.60/netstat.c 2007-05-21 14:03:23.000000000 -0400
@@ -769,6 +769,9 @@ static void finish_this_one(int uid, uns
}
if (flag_prg)
printf("%-" PROGNAME_WIDTHs "s",prg_cache_get(inode));
+ if (flag_selinux)
+ printf("%-" SELINUX_WIDTHs "s",prg_cache_get_con(inode));
+
if (flag_opt)
printf("%s", timers);
putchar('\n');
@@ -2420,6 +2423,7 @@ int main
if (flag_exp > 1)
printf(_(" User Inode "));
print_progname_banner();
+ print_selinux_banner();
if (flag_opt)
printf(_(" Timer")); /* xxx */
printf("\n");

View File

@ -3,7 +3,7 @@
Summary: Basic networking tools
Name: net-tools
Version: 1.60
Release: 81%{?dist}
Release: 82%{?dist}
License: GPL
Group: System Environment/Base
URL: http://www.tazenda.demon.co.uk/phil/net-tools/
@ -261,6 +261,9 @@ exit 0
%{_sysconfdir}/rc.d/init.d/netplugd
%changelog
* Tue May 22 2007 Radek Vokál <rvokal@redhat.com> - 1.60-82
- better SELinux patch by <dwalsh@redhat.com>
* Tue Mar 27 2007 Radek Vokál <rvokal@redhat.com> - 1.60-81
- fix segfault for empty interface (#234045)