Skip to contentSkip to conversation

smack: fix parsing mount options

PATCH New Andrei Vagin 1 participant 1 message Dec 20, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 smack: fix parsing mount options

Recent changes removed "smack" prefix from smack mount options.

Fixes 53c1d44b9071 ("smack: rewrite smack_sb_eat_lsm_opts()")
---
 security/smack/smack_lsm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/smack/smack_lsm.c +1 -1
index 603ed7d20ab4..11da1e2531c8 100644
@@ -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;
Signature · 1 line
2.17.2