Files
meta-openembedded/meta-oe/recipes-devtools/android-tools
Etienne Cordonnier 52ad867408 android-tools: make patch more secure
The patch was creating the file /run/.adb.root with read-write permission for "other",
so any user was able to write to it.

Make the file owned by user adb, and remove permissions for group and other.

Before:
```
root@raspberrypi4-64:~# ls -l /run/.adb.root
-rw-rw-rw- 1 root root 8 Mar 13 15:42 /run/.adb.root
```

After:
```
root@raspberrypi4-64:~# ls -l /run/adb.root
-rw------- 1 adb adb 8 Mar 13 15:35 /run/adb.root
```

Also rename the file from .adbd.root to adbd.root, since hidden files are
not the convention in /run

AI-Generated: Uses GitHub Copilot (Claude Sonnet 4.6)
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-06-20 23:41:43 -07:00
..