Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363291
b: refs/heads/master
c: 1e70bd4
h: refs/heads/master
i:
  363289: 9d45f2e
  363287: 1e30c38
v: v3
  • Loading branch information
Charndeep Grewal authored and Greg Kroah-Hartman committed Mar 5, 2013
1 parent 812345f commit 880ab97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0441bcf4db64e9825937916fe64d539d12c3fead
refs/heads/master: 1e70bd46a5a950b7ba319e50bdfed9d20ed9fd73
5 changes: 5 additions & 0 deletions trunk/drivers/staging/android/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,11 @@ static long logger_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
ret = -EBADF;
break;
}
if (!(in_egroup_p(file->f_dentry->d_inode->i_gid) ||
capable(CAP_SYSLOG))) {
ret = -EPERM;
break;
}
list_for_each_entry(reader, &log->readers, list)
reader->r_off = log->w_off;
log->head = log->w_off;
Expand Down

0 comments on commit 880ab97

Please sign in to comment.