summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2019-05-31 13:53:33 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2019-06-15 03:25:04 +0300
commit6e7739fc938c1ec58d321f70ea41d9548a4cca0f (patch)
tree5516882281ce3b550bd8e13ab15ff568b1e40675 /ipc
parent72a20cee5d99d231809ee4d3d2c09a96a25451e2 (diff)
downloadlinux-6e7739fc938c1ec58d321f70ea41d9548a4cca0f.tar.xz
Smack: Restore the smackfsdef mount option and add missing prefixes
The 5.1 mount system rework changed the smackfsdef mount option to smackfsdefault. This fixes the regression by making smackfsdef treated the same way as smackfsdefault. Also fix the smack_param_specs[] to have "smack" prefixes on all the names. This isn't visible to a user unless they either: (a) Try to mount a filesystem that's converted to the internal mount API and that implements the ->parse_monolithic() context operation - and only then if they call security_fs_context_parse_param() rather than security_sb_eat_lsm_opts(). There are no examples of this upstream yet, but nfs will probably want to do this for nfs2 or nfs3. (b) Use fsconfig() to configure the filesystem - in which case security_fs_context_parse_param() will be called. This issue is that smack_sb_eat_lsm_opts() checks for the "smack" prefix on the options, but smack_fs_context_parse_param() does not. Fixes: c3300aaf95fb ("smack: get rid of match_token()") Fixes: 2febd254adc4 ("smack: Implement filesystem context security hooks") Cc: stable@vger.kernel.org Reported-by: Jose Bollo <jose.bollo@iot.bzh> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: David Howells <dhowells@redhat.com> Tested-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions