Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264570
b: refs/heads/master
c: d86b2b6
h: refs/heads/master
v: v3
  • Loading branch information
Jarkko Sakkinen authored and Casey Schaufler committed Oct 18, 2011
1 parent 26ff1a9 commit 3a98bfa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: e0b057b406a33501a656dc8d67ea945d7bcdad61
refs/heads/master: d86b2b61d4dea614d6f319772a90a8f98b55ed67
2 changes: 1 addition & 1 deletion trunk/security/smack/smackfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ static ssize_t smk_write_access(struct file *file, const char __user *buf,
data[0] = res == 0 ? '1' : '0';
data[1] = '\0';

simple_transaction_set(file, 1);
simple_transaction_set(file, 2);
return SMK_LOADLEN;
}

Expand Down
7 changes: 2 additions & 5 deletions trunk/security/tomoyo/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,8 @@ static struct tomoyo_profile *tomoyo_assign_profile
TOMOYO_CONFIG_WANT_REJECT_LOG;
memset(ptr->config, TOMOYO_CONFIG_USE_DEFAULT,
sizeof(ptr->config));
ptr->pref[TOMOYO_PREF_MAX_AUDIT_LOG] =
CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG;
ptr->pref[TOMOYO_PREF_MAX_LEARNING_ENTRY] =
CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY;
ptr->pref[TOMOYO_PREF_MAX_AUDIT_LOG] = 1024;
ptr->pref[TOMOYO_PREF_MAX_LEARNING_ENTRY] = 2048;
mb(); /* Avoid out-of-order execution. */
ns->profile_ptr[profile] = ptr;
entry = NULL;
Expand Down Expand Up @@ -2591,7 +2589,6 @@ ssize_t tomoyo_write_control(struct tomoyo_io_buffer *head,
return -EFAULT;
if (mutex_lock_interruptible(&head->io_sem))
return -EINTR;
head->read_user_buf_avail = 0;
idx = tomoyo_read_lock();
/* Read a line and dispatch it to the policy handler. */
while (avail_len > 0) {
Expand Down

0 comments on commit 3a98bfa

Please sign in to comment.