diff options
| author | James Wylder <jwylder@motorola.com> | 2014-02-28 11:34:56 -0600 |
|---|---|---|
| committer | James Wylder <jwylder@motorola.com> | 2014-03-05 17:46:16 -0600 |
| commit | 0b56745f5408ffc96e8bdbc8c8b85cac1db163b5 (patch) | |
| tree | a954b58aef312d4ede444953730389541498c3ec /fs/proc/base.c | |
| parent | c74090f8afeac95df81f318d5ddae3f1ecc53256 (diff) | |
| download | olio-linux-3.10-0b56745f5408ffc96e8bdbc8c8b85cac1db163b5.tar.xz olio-linux-3.10-0b56745f5408ffc96e8bdbc8c8b85cac1db163b5.zip | |
IKXCLOCK-380 AID_* to kguid_t mappings
Update references to AID_* definions to wrap the
corresponding uid type.
Signed-off-by: James Wylder <jwylder@motorola.com>
Diffstat (limited to 'fs/proc/base.c')
| -rw-r--r-- | fs/proc/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 2d00fdde934..8051324d187 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1013,7 +1013,7 @@ static int oom_adjust_permission(struct inode *inode, int mask) p = get_proc_task(inode); if(p) { - uid = task_uid(p); + uid = __kuid_val(task_uid(p)); put_task_struct(p); } @@ -1021,7 +1021,7 @@ static int oom_adjust_permission(struct inode *inode, int mask) * System Server (uid == 1000) is granted access to oom_adj of all * android applications (uid > 10000) as and services (uid >= 1000) */ - if (p && (current_fsuid() == 1000) && (uid >= 1000)) { + if (p && (__kuid_val(current_fsuid()) == 1000) && (uid >= 1000)) { if (inode->i_mode >> 6 & mask) { return 0; } |