WDCommunity / wdpksrc

Cross compilation framework to create native packages for the Western Digital My Cloud
BSD 3-Clause "New" or "Revised" License
212 stars 54 forks source link

What would happen if someone created an `entware` share in either OS3 or OS5? Potential problem? #88

Closed Myron-S closed 3 years ago

Myron-S commented 3 years ago

Just a thought. I'm not going to do this on my NAS has al hell may break loose, but in the quest to protect other users from themselves I ask a question . . . .

The actual entware directory is stored in /shares/Volume_1/entware/.

What would happen if someone was to create a network share named entware through WD's dashboard UI?

Is it possible for the OS3 and OS5 installers to name the entware folder as /shares/Volume_1/.entware/? Could an WD entware app update be put together that would perform such a rename and remount /opt from /shares/Volume_1/entware/ to /shares/Volume_1/.entware/.

Should work as nothing should be writing directly to the proposed /shares/Volume_1/.entware/ or /mnt/HD/HD_a2/entware, but only to /opt.

stefaang commented 3 years ago

It's about as likely as creating a Nas_Prog share. Nobody stops you from doing it but it's not something I'd bother about.

Myron-S commented 3 years ago

Good point, but I'm guessing WD would have put something in the dashboard UI to reject Nas_progs as a share name. Still, anyone who wishes to use entware should really know better and not try. :-)