Commit 0c92d7c7 authored by Christopher J. PeBenito's avatar Christopher J. PeBenito Committed by James Morris

selinux: rename sel_remove_bools() for more general usage.

sel_remove_bools() will also be used by the object class discovery, rename
it for more general use.
Signed-off-by: default avatarChristopher J. PeBenito <cpebenito@tresys.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 55fcf09b
...@@ -940,9 +940,8 @@ static const struct file_operations sel_commit_bools_ops = { ...@@ -940,9 +940,8 @@ static const struct file_operations sel_commit_bools_ops = {
.write = sel_commit_bools_write, .write = sel_commit_bools_write,
}; };
/* delete booleans - partial revoke() from /* partial revoke() from fs/proc/generic.c proc_kill_inodes */
* fs/proc/generic.c proc_kill_inodes */ static void sel_remove_entries(struct dentry *de)
static void sel_remove_bools(struct dentry *de)
{ {
struct list_head *p, *node; struct list_head *p, *node;
struct super_block *sb = de->d_sb; struct super_block *sb = de->d_sb;
...@@ -998,7 +997,7 @@ static int sel_make_bools(void) ...@@ -998,7 +997,7 @@ static int sel_make_bools(void)
kfree(bool_pending_values); kfree(bool_pending_values);
bool_pending_values = NULL; bool_pending_values = NULL;
sel_remove_bools(dir); sel_remove_entries(dir);
if (!(page = (char*)get_zeroed_page(GFP_KERNEL))) if (!(page = (char*)get_zeroed_page(GFP_KERNEL)))
return -ENOMEM; return -ENOMEM;
...@@ -1048,7 +1047,7 @@ out: ...@@ -1048,7 +1047,7 @@ out:
return ret; return ret;
err: err:
kfree(values); kfree(values);
sel_remove_bools(dir); sel_remove_entries(dir);
ret = -ENOMEM; ret = -ENOMEM;
goto out; goto out;
} }
......
Markdown is supported
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