mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
- Changed the applet to understand that a byte array, rather than
a string, will be coming in for the profile name.
This commit is contained in:
@@ -93,8 +93,9 @@ static DBusHandlerResult signal_filter
|
||||
{
|
||||
GtkTreePath *path;
|
||||
GtkTreeIter listIter;
|
||||
DBusMessageIter iter;
|
||||
DBusMessageIter iter, subIter;
|
||||
char *program_name;
|
||||
int arrayLen;
|
||||
/* We are about to be kicked off */
|
||||
if (dbus_message_is_signal
|
||||
(message, DBUS_PATH_LOCAL, "Disconnected"))
|
||||
@@ -130,8 +131,10 @@ static DBusHandlerResult signal_filter
|
||||
dbus_message_iter_next(&iter);
|
||||
dbus_message_iter_next(&iter);
|
||||
dbus_message_iter_next(&iter);
|
||||
dbus_message_iter_get_basic(&iter, &program_name);
|
||||
|
||||
// dbus_message_iter_get_basic(&iter, &program_name);
|
||||
dbus_message_iter_recurse(&iter, &subIter);
|
||||
dbus_message_iter_get_fixed_array(&subIter, &program_name, &arrayLen);
|
||||
|
||||
if (program_name == NULL)
|
||||
{
|
||||
return DBUS_HANDLER_RESULT_HANDLED;
|
||||
|
Reference in New Issue
Block a user