diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2022-02-02 15:55:29 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2022-02-04 21:40:15 +0300 |
commit | 70f4169ab421b277caf7429e84f468d8c47aa00a (patch) | |
tree | 4d059d7be87344b94d82c704ee15d99a26762eec /Documentation/security | |
parent | 0e326df069802dc48e4f095f889cb780e4beaba6 (diff) | |
download | linux-70f4169ab421b277caf7429e84f468d8c47aa00a.tar.xz |
selinux: parse contexts for mount options early
Commit b8b87fd954b4 ("selinux: Fix selinux_sb_mnt_opts_compat()")
started to parse mount options into SIDs in selinux_add_opt() if policy
has already been loaded. Since it's extremely unlikely that anyone would
depend on the ability to set SELinux contexts on fs_context before
loading the policy and then mounting that context after simplify the
logic by always parsing the options early.
Note that the multi-step mounting is only possible with the new
fscontext mount API and wasn't possible before its introduction.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'Documentation/security')
0 files changed, 0 insertions, 0 deletions