Apply secure log to uinput path
authorDeokhyun Kim <dukan.kim@samsung.com>
Thu, 6 Feb 2020 11:27:26 +0000 (20:27 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 17 Feb 2020 06:27:53 +0000 (15:27 +0900)
<6>[  712.832464]  [1:     bluetoothd: 4557] input: 64:7B:XX:XX:5A:71 as /devices/virtual/input/input6

Change-Id: I68dfc2f3362f03036d4a99a15906a95482b70354
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
profiles/audio/avctp.c

index 44eb19c..4ec06b7 100644 (file)
@@ -1292,6 +1292,12 @@ static void init_uinput(struct avctp *session)
        }
 
        ba2str(device_get_address(session->device), address);
+       /*
+        * Make sucre address to prevent to print privacy log
+        */
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+       address[6] = address[7] = address[9] = address[10] = 'X';
+#endif
        session->uinput = uinput_create(address);
        if (session->uinput < 0)
                error("AVRCP: failed to init uinput for %s", address);