projects
/
platform
/
kernel
/
linux-tizen-modules-source.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b691d
)
more open-coded file_inode() calls
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 16 Jun 2013 13:25:12 +0000
(17:25 +0400)
committer
Karol Lewandowski
<k.lewandowsk@samsung.com>
Thu, 22 Apr 2021 12:53:40 +0000
(14:53 +0200)
Change-Id: I7dd013afbccd5fd3ec2328829bb1cdbf634d84cf
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[ Pick only changes in logger.[ch] while moving code out of tree ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
drivers/staging/android/logger.c
patch
|
blob
|
history
diff --git
a/drivers/staging/android/logger.c
b/drivers/staging/android/logger.c
index
9bd8747
..
080abf2
100644
(file)
--- a/
drivers/staging/android/logger.c
+++ b/
drivers/staging/android/logger.c
@@
-696,7
+696,7
@@
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) ||
+ if (!(in_egroup_p(file
_inode(file)
->i_gid) ||
capable(CAP_SYSLOG))) {
ret = -EPERM;
break;