From 9e54757fd3c2152b3c66128dde8d5d21c67499b6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 22 Dec 2012 09:14:58 -0800 Subject: [PATCH] profiles: Store information only accessible for the owner --- profiles/gatt/gas.c | 2 +- profiles/proximity/monitor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c index c9353f6a8..b5e0e525d 100644 --- a/profiles/gatt/gas.c +++ b/profiles/gatt/gas.c @@ -96,7 +96,7 @@ static void write_ctp_handle(struct btd_device *device, uint16_t uuid, data = g_key_file_to_data(key_file, &length, NULL); if (length > 0) { - create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + create_file(filename, S_IRUSR | S_IWUSR); g_file_set_contents(filename, data, length, NULL); } diff --git a/profiles/proximity/monitor.c b/profiles/proximity/monitor.c index 0be0ae40d..370592dfa 100644 --- a/profiles/proximity/monitor.c +++ b/profiles/proximity/monitor.c @@ -103,7 +103,7 @@ static void write_proximity_config(struct btd_device *device, const char *alert, data = g_key_file_to_data(key_file, &length, NULL); if (length > 0) { - create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + create_file(filename, S_IRUSR | S_IWUSR); g_file_set_contents(filename, data, length, NULL); } -- 2.47.3