Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10071
b: refs/heads/master
c: 20c19e4
h: refs/heads/master
i:
  10069: a753718
  10067: 3967ebe
  10063: 73fe162
v: v3
  • Loading branch information
Davi Arnaut authored and Linus Torvalds committed Oct 23, 2005
1 parent 7ad8ca1 commit 0e76070
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 282c1f5eba150d0b156ffa9e6b064f1d92f8315f
refs/heads/master: 20c19e4179884d7e843314071e2dfb1ea7b0afcd
4 changes: 3 additions & 1 deletion trunk/security/selinux/selinuxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ static ssize_t sel_commit_bools_write(struct file *filep,
if (sscanf(page, "%d", &new_value) != 1)
goto out;

if (new_value) {
if (new_value && bool_pending_values) {
security_set_bools(bool_num, bool_pending_values);
}

Expand Down Expand Up @@ -952,6 +952,7 @@ static int sel_make_bools(void)

/* remove any existing files */
kfree(bool_pending_values);
bool_pending_values = NULL;

sel_remove_bools(dir);

Expand Down Expand Up @@ -1002,6 +1003,7 @@ static int sel_make_bools(void)
}
return ret;
err:
kfree(values);
d_genocide(dir);
ret = -ENOMEM;
goto out;
Expand Down

0 comments on commit 0e76070

Please sign in to comment.