Hmm.... This code does not make sense at all + if ((current != task) && (!capable(CAP_SYS_ADMIN))) { <== where the task is defined?
+ const struct cred *cred = current_cred(), *tcred; + + if (cred->euid != tcred->uid && cred->euid != tcred- >suid) <==== what is the value for tcred? + return -EPERM; + } + I think the "task" should be "tsk" and somehow it missed one line like tcred = __task_cred(tsk); On Jun 1, 3:28 pm, beyounn <beyo...@gmail.com> wrote: > I just checked out 2.6.29 and did a make bzImage. I'm seeing following > errors: > ernel/cpuset.c: In function ‘cpuset_can_attach’: > kernel/cpuset.c:1360: error: ‘task’ undeclared (first use in this > function) > kernel/cpuset.c:1360: error: (Each undeclared identifier is reported > only once > kernel/cpuset.c:1360: error: for each function it appears in.) > kernel/cpuset.c: In function ‘cpuset_print_task_mems_allowed’: > kernel/cpuset.c:2454: warning: format not a string literal and no > format arguments > make[1]: *** [kernel/cpuset.o] Error 1 > > and revert patch > 2bda29ae9ba43a012a4ea9089dc3362b96f167a8 seems fixed the problem. Is > this a known issue? --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---