-
Notifications
You must be signed in to change notification settings - Fork 166
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
/dev/ashmem
and fstat
.
#258
Comments
I think you can use following as alternative to int32_t shmfd = open(".", O_TMPFILE | O_RDWR | O_EXCL | O_CLOEXEC, 0); // Needs writeable directory
int32_t shmfd = memfd_create("x", MFD_CLOEXEC); (Or creating file and I'll later see how proposed behaviour can be implemented (although I'm pretty sure that is nontrivial and will require chaining |
And there is a problem. I can not use it directly, it is already a part of Xorg source code and I can not override this behaviour. Users launch it in chroot and I should somehow handle this behavior. Can you please also implement memfd_create with following ftruncate? |
Pushed experimental extension that redirects Extension needs to be enabled through |
Thank you. I am already working on code which will require this. |
About |
Termux Replacing Opening |
I Am recommending to The Proot-distro to allow users to use this new implemented feature as soon as it will be statet as stable and secure. |
It looks like I was wrong and you can simply use
What about using |
Problem description
Can you please update proot to update
struct stat::st_size
iffstat
answer == 0,struct stat::st_size == 0
and file descriptor points to/dev/ashmem
with return value ofashmem_get_size_region
?Steps to reproduce
You can see steps and a code snippets in related issue. termux/termux-packages#15239 .
Expected behavior
struct stat::st_size
should containashmem
region size afterfstat
call.Additional information
Related issue.
The text was updated successfully, but these errors were encountered: