diff options
| author | Alin Jerpelea <alin.jerpelea@sonymobile.com> | 2016-10-24 03:59:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-24 03:59:52 -0400 |
| commit | 3333abd03ad8136d8b5a68c350383870ae7aab57 (patch) | |
| tree | bba6e005696ade5edff812fdace220ec37734509 | |
| parent | f9caf6871b17a678b4bf443326cbcf2115a41849 (diff) | |
| parent | a2a73a4fff49fa0318c3d5094732fd7354618f03 (diff) | |
Merge pull request #10 from Contortrix/master
macaddr: remove dangerous sepolicy permissions
| -rw-r--r-- | macaddrsetup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/macaddrsetup.c b/macaddrsetup.c index 90f369c..8bcea15 100644 --- a/macaddrsetup.c +++ b/macaddrsetup.c @@ -11,7 +11,7 @@ #define LOG_TAG "macaddrsetup" #include <cutils/log.h> -#define BT_MAC_FILE "/data/etc/bluetooth_bdaddr" +#define BT_MAC_FILE "/data/misc/bluetooth/bluetooth_bdaddr" extern const char *__progname; extern int ta_open(uint8_t p, uint8_t m, uint8_t c); @@ -70,8 +70,6 @@ int main(int argc, char **argv) fclose(fpb); exit(1); } - chown(BT_MAC_FILE, AID_BLUETOOTH, AID_BLUETOOTH); - chmod(BT_MAC_FILE, S_IRUSR | S_IWUSR | S_IRGRP); // 640 if (argc > 1) { fpw = fopen(argv[1], "w"); |
