[lxc-devel] [lxc/lxc] 85c2de: config: Fix parsing of mount options
Christian Brauner
noreply at github.com
Fri Dec 6 14:10:29 UTC 2019
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 85c2de3902df6ccad2c9e0585fb76cd7916a3443
https://github.com/lxc/lxc/commit/85c2de3902df6ccad2c9e0585fb76cd7916a3443
Author: Maximilian Blenk <Maximilian.Blenk at bmw.de>
Date: 2019-12-06 (Fri, 06 Dec 2019)
Changed paths:
M src/lxc/conf.c
Log Message:
-----------
config: Fix parsing of mount options
When parsing mount options e.g. from lxc.mount.entry the specified
options are mapped to the flags constants. To do so, the strings
are compared to the options contained in mount_opt. However,
when comparing the strings, the length of the string is not
checked. That entails that the option "rootcontext=selinux-context"
is mapped to the mount option read-only (ro). This commit fixes
this issue by checking if a '=' is contained in the specified option
and additionally comparing the length of the strings.
Signed-off-by: Maximilian Blenk <Maximilian.Blenk at bmw.de>
Commit: 6b3dccea88b17272928195c5f2e63f81736f6c5b
https://github.com/lxc/lxc/commit/6b3dccea88b17272928195c5f2e63f81736f6c5b
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2019-12-06 (Fri, 06 Dec 2019)
Changed paths:
M src/lxc/conf.c
Log Message:
-----------
Merge pull request #3213 from blenk92/fix-mount-parsing
config: Fix parsing of mount options
Compare: https://github.com/lxc/lxc/compare/750012991fb1...6b3dccea88b1
More information about the lxc-devel
mailing list