Replies: 2 comments 1 reply
-
I got the dtc binary from one of these repos, which all have the exact same dtc binary:
So maybe one of them knows where the source for that dtc version is located. I searched the Xpenology forum but searching for 'dtc source' found too many irrelevant results. Let me know if you find the source for dtc as I'd like to add it my repo, or at least a link to the source. Commands that need sudo in syno_hdd_dbNotes
Due to 4, 5, 6 and 7 there may be more commands that need sudo that I didn't find.
|
Beta Was this translation helpful? Give feedback.
-
I was a bit worried about finding a binary without a clear origin in this repo as well. The mention of the three repos above was not able to satisfy my security concerns (especially after the recent xz-nightmare). So I decided to consult virus total. As expected no virus was found. However my actual concern was to get more informations about the origin of this binary. On the detail page you get the information that the binary was build by using Since I was not satisfied by this Source (in my personal opinion) I tried to use the dtc from a Debian package. Since newer ones had unresolvable dependencies I ended with using the dtc from the device-tree-compiler package for Debian Buster (Debian 10) which works perfectly fine for the syno_hdd_db.sh script. I'm writing these lines for everyone with the same concerns like me. Since I assume the most people are happy with the current solution I will not open a dedicated issue for that. Anyways: Thank you for your awesome scripts to make Synology usable again. :) Greetings, |
Beta Was this translation helpful? Give feedback.
-
I'm security minded and would like to hear which operations of the script that require root access.
If, for instance, just some options require root access and others can execute fine at lower permissions then it would be beneficial to know.
It could also then be an improvement idea to separate the script into several parts where those operations requiring root were in sub scripts.
Further, I've not found the source code to /bin/dtc in this repository. Where can is be found in order to do code review from a security standpoint?
Having a tool running as root that downloads a binary file from an online repo, installs it and executes it as root may be seen as something worth investigating.
Beta Was this translation helpful? Give feedback.
All reactions