Skip to content

Commit a65fa40

Browse files
committed
Merge branch 'master' into sysfs
Pulls in the 2.2 release stuff. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2 parents 3a2644e + 38e9dc5 commit a65fa40

7 files changed

+17
-7
lines changed

AUTHORS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- AUTHORS for USBView - a USB device viewer
2-
-- Copyright (c) 1999-2012, 2021 by Greg Kroah-Hartman, [email protected]
2+
-- Copyright (c) 1999-2012, 2021-2022 by Greg Kroah-Hartman, [email protected]
33
--
44
-- This program is free software; you can redistribute it and/or modify
55
-- it under the terms of the GNU General Public License as published by

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
version 2.2
2+
- security issue fixed with polkit (CVE-2022-23220).
3+
- copyright year fixups and updates
4+
- tooltip added to explain red devices have no attached drivers
5+
16
version 2.1
27
- build warnings fixed
38
- increased max number of interfaces allowed, fixing problem with some

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- README for USBView - a USB device viewer
2-
-- Copyright (c) 1999-2012, 2021 by Greg Kroah-Hartman, [email protected]
2+
-- Copyright (c) 1999-2012, 2021-2022 by Greg Kroah-Hartman, [email protected]
33
--
44
-- This program is free software; you can redistribute it and/or modify
55
-- it under the terms of the GNU General Public License as published by

callbacks.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void on_buttonAbout_clicked (GtkButton *button, gpointer user_data)
4545
"comments", "Display information on USB devices",
4646
"website-label", "http://www.kroah.com/linux-usb/",
4747
"website", "http://www.kroah.com/linux-usb/",
48-
"copyright", "Copyright © 1999-2012, 2021",
48+
"copyright", "Copyright © 1999-2012, 2021-2022",
4949
"authors", authors,
5050
NULL);
5151
g_object_unref (logo);

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
33
# Prologue.
44

55
AC_PREREQ([2.69])
6-
AC_INIT([USBView],[2.1],[Greg Kroah-Hartman <[email protected]>],[usbview],[http://www.kroah.com/linux-usb/])
6+
AC_INIT([USBView],[2.2],[Greg Kroah-Hartman <[email protected]>],[usbview],[http://www.kroah.com/linux-usb/])
77
AC_CONFIG_SRCDIR([usbtree.c])
88
AC_CONFIG_HEADERS([config.h])
99
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])

main.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@
77
#include <config.h>
88
#endif
99

10+
#include <stdlib.h>
11+
1012
#include <gtk/gtk.h>
1113

1214
#include "usbtree.h"
1315

1416
int main (int argc, char *argv[])
1517
{
1618
GtkWidget *window1;
19+
gboolean is_pkexec = getenv("PKEXEC_UID") != NULL;
1720

18-
gtk_init (&argc, &argv);
21+
// only evalute command line parameters if not running in pkexec
22+
// privilege escalation context to avoid potential attack vectors
23+
gtk_init (is_pkexec ? NULL : &argc, is_pkexec ? NULL : &argv);
1924

2025
initialize_stuff();
2126

org.freedesktop.pkexec.usbview.policy

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<message>Authentication is required to view USB bus</message>
99
<icon_name>usbview_icon</icon_name>
1010
<defaults>
11-
<allow_any>yes</allow_any>
12-
<allow_inactive>yes</allow_inactive>
11+
<allow_any>no</allow_any>
12+
<allow_inactive>no</allow_inactive>
1313
<allow_active>auth_admin_keep</allow_active>
1414
</defaults>
1515
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/usbview</annotate>

0 commit comments

Comments
 (0)