diff options
author | Dalvik Khertel <khertel@outlook.com> | 2012-08-09 12:48:20 +0000 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-06-20 12:49:36 -0700 |
commit | 9448849b568bf430950463fb70dab81a139b29bd (patch) | |
tree | bc4dd71cda59043f9f8c05e9f76aba5f01cd64ac | |
parent | c47dde86c0dd3dc6c5cbc7f8df5e77d534c85710 (diff) | |
download | fuse-9448849b568bf430950463fb70dab81a139b29bd.tar.gz |
libfuse: pass security context options to kernel
Mount can be used with an "-o context=" option in order to specify a
mountpoint-wide SELinux security context different from the default context
provided by the active SELinux policy.
This is useful in order to enable users to mount multiple sshfs targets under
distinct contexts, which is my main motivation for getting this patch mainlined.
Closes: #36
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/mount.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Unreleased Changes +================== + +* Added SELinux support. + FUSE 2.9.6 (2016-04-23) ======================= diff --git a/lib/mount.c b/lib/mount.c index ef8ffd4..227a408 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -98,6 +98,10 @@ static const struct fuse_opt fuse_mount_opts[] = { FUSE_OPT_KEY("large_read", KEY_KERN_OPT), FUSE_OPT_KEY("blksize=", KEY_KERN_OPT), FUSE_OPT_KEY("default_permissions", KEY_KERN_OPT), + FUSE_OPT_KEY("context=", KEY_KERN_OPT), + FUSE_OPT_KEY("fscontext=", KEY_KERN_OPT), + FUSE_OPT_KEY("defcontext=", KEY_KERN_OPT), + FUSE_OPT_KEY("rootcontext=", KEY_KERN_OPT), FUSE_OPT_KEY("max_read=", KEY_KERN_OPT), FUSE_OPT_KEY("max_read=", FUSE_OPT_KEY_KEEP), FUSE_OPT_KEY("user=", KEY_MTAB_OPT), |