![]() ![]() Do this by extracting the flag-gettingįunctionality into a separate function. Mount, the remount cannot replicate the original mount.įix this by always obtaining the flags of the source, even if theĭestination exists. Without knowing the flags of the original In order to make something read-only usingĪ bind mount, Minijail needs to perform two mounts: one bind-mount,Īnd a remount with MS_RDONLY. Routinely used to make a filesystem object read-only only inside a Setup_mount_destination, on the other hand, exits early when theĭestination exists, assuming that if the destination exists the sourceįlags are not needed. Mount_one was assuming that |original_mnt_flags| was always populated,Įven if the destination of a bind-mount existed. 7e8cd81674a06111da3f1a0a90559c444bdd30df Īlways get mount flags for the source of a bind mount. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |