I have an application called AppFS. This application has an ext2 file system just attached to the end of the file (it is positioned so that the application binary exists in a 1 MB distance, followed by ext2 data).
Now I have FUSE built into the program, and I was able to extract the file system from the application data into a temporary file so that FUSE mounts / uses it.
Now the problem is writing the temporary file back to the application file. I get a “text file busy”, presumably because the application has blocked itself and will not allow recording.
Is there a way to make the file unlock so I can write data? (It is important to note that I do not change the binary area of the application - I simply rewrite the ext2 component.) It must be unlocked without requiring root privileges (unlocked by the same user who launched the application).
source
share