-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EasyTag and Sandboxie #441
Comments
Not sure if this helps, but if you install and run EasyTag outside sandboxie and edit an mp3 file that has the read-only file flag set, then the save-action silently "succeeds" but nothing is saved, so it's possibly nothing to do with sandboxie. |
It has a big fat error, with red letters and everything - so that's not it
|
a) I don't understand why you'd want to run a tagging program in a sandbox. b) You'd wanna give SB access to the folder where the files are located:
|
Limit at |
Ok, I think I have found the cause for this problem. I installed EasyTag and could reproduce the error using a (very small) mp4 file. Then I dug through the code related to the file migration mechanism, and eventually found this interesting snippet buried deep inside the hooked Sandboxie/Sandboxie/core/dll/file.c Lines 2867 to 2898 in 9e5ddd4
So apparently certain file types, including .mp4 files, are deliberately never copied into the sandbox, but forced to appear read-only for sandboxed processes instead.Probably this is because some applications needlessly opened media files with write access, thus copying them into the sandbox, and it was assumed that modifying media files would never be needed. So if you now try to do that... As a fix we could of course just remove that special case handling (which is really ubiquitous all over the source code, coming from the pre-open source days), or maybe even better make it configurable on a per-box basis. That would enable more fine grained control over which files can or cannot be migrated, instead of only having the option to block by file size as we have now. |
LOL... yea so what do we do... its definetly a shitty workaround and counter intuitive... |
Or .... export I'd say it's worth it to issue a SBIE message too though, just in case ... |
True, and it makes no sense; however, it makes even less sense to "magically" block an otherwise "ready" file with a fake error "File is lock by application(s): unknown application" |
this is really messy, in File_MigrateFile_ShouldBypass is an other list of files that should not be migrated. I'll merge that down to one list that is ini defined, and does nto contain media files by default, |
also btw there is a 3rd list of fiels to be "migrated" but empty so great even mroe cases to differentiate |
Or avoid the pain, and issue a message. In a github/wiki, you can add the workarounds (Full Access or rename extension if possible). I guess, however, user will have to restart the sandbox (ie no Live Reload of "Full Access" list) |
Yes I think that's a good idea to move the hardcoded rules to the ini file. (This also makes it possible to set them by Template rules) |
I tried to use EasyTag (https://wiki.gnome.org/Apps/EasyTAG) inside the sandbox.
I have tried to alter metadata of
F:\Video\Ράδιο Αρβύλα\Bits\2021-01-21 - Ράδιο Αρβύλα - Νούμερο Ένα - Εθνικός Ύμνος.mp4
file (~150 MB). The write operation was always failing.I moved the file to a "Direct File Access" directory (E:\Temp). No dice.
(I have also tried renaming the file as "a.mp4", it did not make a difference)
I saw the notice, and I have moved E:\Temp to Full Access. Success.
All of that happened with no messages (except a "non-fatal" message during the installation process).
On the side: Are you familiar with SandboxDiff? It could be something of interest
The text was updated successfully, but these errors were encountered: