diff mbox series

[vfs/for-next] smack: fix parsing mount options

Message ID 20181220062541.12348-1-avagin@gmail.com
State New, archived
Headers show
Series [vfs/for-next] smack: fix parsing mount options | expand

Commit Message

Andrei Vagin Dec. 20, 2018, 6:25 a.m. UTC
Recent changes removed "smack" prefix from smack mount options.

Fixes: 53c1d44b9071 ("smack: rewrite smack_sb_eat_lsm_opts()")
Signed-off-by: Andrei Vagin <avagin@gmail.com>
---
 security/smack/smack_lsm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 603ed7d20ab4..11da1e2531c8 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -61,7 +61,7 @@  static LIST_HEAD(smk_ipv6_port_list);
 static struct kmem_cache *smack_inode_cache;
 int smack_enabled;
 
-#define A(s) {#s, sizeof(#s) - 1, Opt_##s}
+#define A(s) {"smack"#s, sizeof("smack"#s) - 1, Opt_##s}
 static struct {
 	const char *name;
 	int len;