core: rename "mount_flags" → "mount_propagation_flag" internally where appropriate
ExecContext has a field that controls the mount propagation flag of the mounts in the resulting namespace. This is exposed as "MountFlags=" which is super confusing, as it suggests one could control more than propagation, and that it was actually a flags field. It's an enum though only, and nothing else. We might want to rename this externally one day, but given the compat kludges this requires and the fact this is somewhat nichey it might not be worth it. But internally let's rename it, as it makes things much easier to grok, in particular as part of the codebase already exposed the concept as mount_propagation_flag. No actual code flow changes, just some renaming.
This commit is contained in:
committed by
Yu Watanabe
parent
eacfbd89c3
commit
874cdcbcf5
+1
-1
@@ -267,7 +267,7 @@ struct ExecContext {
|
||||
|
||||
char **read_write_paths, **read_only_paths, **inaccessible_paths, **exec_paths, **no_exec_paths;
|
||||
char **exec_search_path;
|
||||
unsigned long mount_flags;
|
||||
unsigned long mount_propagation_flag;
|
||||
BindMount *bind_mounts;
|
||||
size_t n_bind_mounts;
|
||||
TemporaryFileSystem *temporary_filesystems;
|
||||
|
||||
Reference in New Issue
Block a user