Commit d1e26f6f authored by Lukas Braun's avatar Lukas Braun Committed by Simon Ruderich
Browse files

slsm: output what has been parsed in slsm_insert_helper()

Previously the strings as received from the user were printed
out again, which is not as helpful.
parent 6b4c2727
......@@ -181,6 +181,9 @@ static int slsm_insert_helper(struct tree_node *t, char *path,
char *component, *next = path + 1; /* skip leading slash */
struct tree_node *t_next = t;
printk(KERN_INFO "slsm: adding p=%s, a=%s, m=%u, f=%u\n",
path, rule->app, rule->perms.mode, rule->perms.flags);
if (!*path || *path != '/')
return -EINVAL;
......@@ -351,8 +354,6 @@ parse_component:
printk(KERN_INFO "slsm: adding p=%s, a=%s, m=%s\n", path, app, mode_str);
if (!path) {
printk(KERN_ERR "slsm_insert_rule: format error: mandatory parameter path missing\n");
return -EINVAL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment