aboutsummaryrefslogtreecommitdiffstats
path: root/libmount/src/hooks.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2022-05-30 11:47:32 +0200
committerKarel Zak <kzak@redhat.com>2023-01-03 12:53:12 +0100
commitee99f438b899c81f44aaf9f4cd90910cde9d712d (patch)
treea6fb3851729d7e66c4129b042e462c3219fcfa63 /libmount/src/hooks.c
parentc54947e9936fa1832931775fbd2532976f0adf8f (diff)
downloadutil-linux-ee99f438b899c81f44aaf9f4cd90910cde9d712d.tar.gz
libmount: reimplement X-mount.{owner,group,mode}= by hooks
* "prepare-options hook" parses {owner,group,mode}= options * "mount-post hook" calls chmod/own Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/hooks.c')
-rw-r--r--libmount/src/hooks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/hooks.c b/libmount/src/hooks.c
index 5b345c4a63..7e9e9f35b2 100644
--- a/libmount/src/hooks.c
+++ b/libmount/src/hooks.c
@@ -26,7 +26,8 @@ static const struct libmnt_hookset *hooksets[] =
#ifdef __linux__
&hookset_mkdir,
&hookset_subdir,
- &hookset_mount_legacy
+ &hookset_mount_legacy,
+ &hookset_owner
#endif
};