-
Notifications
You must be signed in to change notification settings - Fork 612
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
Why are st_mode restored only for memfd, socket, and reg-file, but not for pipe, evenetfd...? #2281
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I am not sure that I understand the question. What is st_mode in this context? Where do we restore it for memfd, socket, reg-files? |
static int memfd_open_inode_nocache(struct memfd_restore_inode *inode)
... } What I want to know is why CRIU doesn’t uniformly perform st_mode on all fd types. |
This comment was marked as resolved.
This comment was marked as resolved.
You are right, we may need to restore mode, uid, gid for mentioned. However, we have to decide whether we need to do that for each file type separately. For example, there is no need to do this for eventfd since, in the kernel, all eventfd instances are linked to the same anonymous inode.: Secondly, for certain file types, it is less critical since users typically do not reopen them through file systems. |
@avagin okay,thank you! |
A friendly reminder that this issue had no activity for 30 days. |
No description provided.
The text was updated successfully, but these errors were encountered: